From: Holger Schemel Date: Sat, 9 Jan 2021 11:54:19 +0000 (+0100) Subject: fixed bug with not updating game panel when leaving invisible warp mode X-Git-Tag: 4.2.2.1~2 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=580cc0293954391cf0cfd2f99638d8134f88f76c;ds=sidebyside fixed bug with not updating game panel when leaving invisible warp mode --- diff --git a/src/game.c b/src/game.c index 2ccc79cd..d8a3d162 100644 --- a/src/game.c +++ b/src/game.c @@ -2869,12 +2869,10 @@ void UpdateAndDisplayGameControlValues(void) DisplayGameControlValues(); } -#if 0 -static void UpdateGameDoorValues(void) +void UpdateGameDoorValues(void) { UpdateGameControlValues(); } -#endif void DrawGameDoorValues(void) { diff --git a/src/game.h b/src/game.h index 83167870..656bb396 100644 --- a/src/game.h +++ b/src/game.h @@ -401,6 +401,7 @@ int GetElementFromGroupElement(int); int getPlayerInventorySize(int); +void UpdateGameDoorValues(void); void DrawGameDoorValues(void); void UpdateAndDisplayGameControlValues(void); diff --git a/src/tape.c b/src/tape.c index aa5b06b1..2300f00b 100644 --- a/src/tape.c +++ b/src/tape.c @@ -459,6 +459,8 @@ void TapeDeactivateDisplayOff(boolean redraw_display) if (redraw_display) { RedrawPlayfield(); + + UpdateGameDoorValues(); DrawGameDoorValues(); } }