From 355a2c593460a17ffc1502062c415300a94bc639 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Mon, 5 Mar 2007 08:03:14 +0100 Subject: [PATCH] check for game in pause command itself So /pause works correctly as well. --- client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 6110445..47916fc 100644 --- a/client.c +++ b/client.c @@ -346,6 +346,7 @@ void OneGame(void) gameStatus = 0; return; case CT_pause: + if (Players[me].alive <= 0) return; Players[me].flags ^= SCF_paused; if (Game.started > 1) Message(Players[me].flags & SCF_paused @@ -449,14 +450,13 @@ void OneGame(void) // global actions (always possible, even if not playing) if (handle_key(key)) return; - if (Players[me].alive <= 0) return; // actions available while in game switch (key) { case KT_pause: return handle_cmd(CT_pause, NULL); } - if (paused) return; + if (Players[me].alive <= 0 || paused) return; // actions only available while actually playing switch (key) { case KT_left: -- 2.30.0