diff --git a/src/engine/local_engine/localhand.cpp b/src/engine/local_engine/localhand.cpp index eb3ff3cb..651cd20c 100755 --- a/src/engine/local_engine/localhand.cpp +++ b/src/engine/local_engine/localhand.cpp @@ -246,7 +246,8 @@ void LocalHand::assignButtons() { if(playerArray[i]->getMyCash() <= smallBlind) { playerArray[i]->setMySet(playerArray[i]->getMyCash()); - playerArray[i]->setMyAction(6); + // 1 to do not log this + playerArray[i]->setMyAction(6,1); } // sonst @@ -259,7 +260,8 @@ void LocalHand::assignButtons() { if(playerArray[i]->getMyCash() <= 2*smallBlind) { playerArray[i]->setMySet(playerArray[i]->getMyCash()); - playerArray[i]->setMyAction(6); + // 1 to do not log this + playerArray[i]->setMyAction(6,1); } // sonst diff --git a/src/engine/local_engine/localplayer.h b/src/engine/local_engine/localplayer.h index e8253477..c87cdf21 100755 --- a/src/engine/local_engine/localplayer.h +++ b/src/engine/local_engine/localplayer.h @@ -64,10 +64,10 @@ public: int getMySet() const { return mySet;} int getMyLastRelativeSet() const { return myLastRelativeSet; } - void setMyAction(int theValue) { + void setMyAction(int theValue, bool blind = 0) { myAction = theValue; // logging for human player - if(myAction) actualHand->getGuiInterface()->logPlayerActionMsg(myName, myAction, mySet); + if(myAction && !blind) actualHand->getGuiInterface()->logPlayerActionMsg(myName, myAction, mySet); } int getMyAction() const { return myAction; } diff --git a/src/engine/network_engine/clientplayer.h b/src/engine/network_engine/clientplayer.h index 67cd3db3..2f45ced9 100644 --- a/src/engine/network_engine/clientplayer.h +++ b/src/engine/network_engine/clientplayer.h @@ -62,7 +62,7 @@ public: int getMySet() const { return mySet;} int getMyLastRelativeSet() const { return myLastRelativeSet; } - void setMyAction(int theValue) { myAction = theValue; } + void setMyAction(int theValue, bool blind) { myAction = theValue; } int getMyAction() const { return myAction; } void setMyButton(int theValue) { myButton = theValue; } diff --git a/src/engine/playerinterface.h b/src/engine/playerinterface.h index 9e460a5f..c63fab94 100644 --- a/src/engine/playerinterface.h +++ b/src/engine/playerinterface.h @@ -59,7 +59,7 @@ public: virtual int getMySet() const =0; virtual int getMyLastRelativeSet() const =0; - virtual void setMyAction(int theValue) =0; + virtual void setMyAction(int theValue, bool blind=0) =0; virtual int getMyAction() const =0; virtual void setMyButton(int theValue) =0;