From 026e20aaddde043994e102710263c86bbd7b001c Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Tue, 14 Sep 2004 10:40:28 +0000 Subject: [PATCH] When typying 'lifeup' pause is triggered (cause of the last 'p'). Made a work around to fix that. SVN-Revision: 1908 --- src/gameloop.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/gameloop.cpp b/src/gameloop.cpp index 298b8dd44..93abe3907 100644 --- a/src/gameloop.cpp +++ b/src/gameloop.cpp @@ -407,6 +407,18 @@ GameSession::process_events() { player_status.lives++; last_keys.clear(); + // "lifeup" activates pause cause of the 'p' + // so work around to ignore it + if(game_pause) + { + game_pause = false; + Ticks::pause_stop(); + } + else + { + game_pause = true; + Ticks::pause_start(); + } } if(compare_last(last_keys, "lifedown")) { -- 2.11.0