mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
when logging state transitions, don't unless there's a change
This commit is contained in:
parent
16519a2070
commit
6b527014c8
1 changed files with 5 additions and 3 deletions
|
@ -163,9 +163,11 @@ getStateStr( XW_State st )
|
|||
static void
|
||||
logNewState( XW_State old, XW_State newst )
|
||||
{
|
||||
char* oldStr = getStateStr(old);
|
||||
char* newStr = getStateStr(newst);
|
||||
XP_LOGF( "state transition %s => %s", oldStr, newStr );
|
||||
if ( old != newst ) {
|
||||
char* oldStr = getStateStr(old);
|
||||
char* newStr = getStateStr(newst);
|
||||
XP_LOGF( "state transition %s => %s", oldStr, newStr );
|
||||
}
|
||||
}
|
||||
# define SETSTATE( s, st ) { XW_State old = (s)->nv.gameState; \
|
||||
(s)->nv.gameState = (st); \
|
||||
|
|
Loading…
Reference in a new issue