git.shiar.nl
/
netris.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
boolean pause state
[netris.git]
/
client.c
diff --git
a/client.c
b/client.c
index e3a2ffc8f63262a59854802d5856e75678276bda..344a4409091fe595feded89ad1d1a6890cabb6c9 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-73,7
+73,7
@@
static char *cmds[] = {
};
static char *hostStr;
};
static char *hostStr;
-static
int
paused = 0;
+static
bool
paused = 0;
static char lastadd;
static char lastadd;
@@
-251,8
+251,7
@@
void game_setpaused(void)
paused = Game.started < 1;
for (i = 1; i < MAX_SCREENS; i++) if (Players[i].alive > 0)
paused = Game.started < 1;
for (i = 1; i < MAX_SCREENS; i++) if (Players[i].alive > 0)
- paused |= Players[i].flags & SCF_paused;
- if (paused) paused = 1;
+ paused |= (Players[i].flags & SCF_paused) != 0;
}
void game_reset(void)
}
void game_reset(void)