git.shiar.nl
/
netris.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
355a2c5
)
pause key not special cased, but as any other command key
author
Mischa POSLAWSKY
<netris@shiar.org>
Mon, 5 Mar 2007 07:04:57 +0000
(08:04 +0100)
committer
Mischa POSLAWSKY
<netris@shiar.org>
Mon, 5 Mar 2007 07:04:57 +0000
(08:04 +0100)
client.c
patch
|
blob
|
history
diff --git
a/client.c
b/client.c
index 47916fc27cdf9d5a14259da20115c496fe7e5fa0..c4de9b1f5c89494f21c39d57d9b1d13a9d3589fb 100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-443,6
+443,9
@@
void OneGame(void)
case KT_quit:
handle_cmd(CT_quit, NULL);
return 1;
case KT_quit:
handle_cmd(CT_quit, NULL);
return 1;
+ case KT_pause:
+ handle_cmd(CT_pause, NULL);
+ return 1;
default:
return 0;
}
default:
return 0;
}
@@
-450,12
+453,6
@@
void OneGame(void)
// global actions (always possible, even if not playing)
if (handle_key(key)) return;
// global actions (always possible, even if not playing)
if (handle_key(key)) return;
- // actions available while in game
- switch (key) {
- case KT_pause:
- return handle_cmd(CT_pause, NULL);
- }
-
if (Players[me].alive <= 0 || paused) return;
// actions only available while actually playing
switch (key) {
if (Players[me].alive <= 0 || paused) return;
// actions only available while actually playing
switch (key) {