X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=b5640b614922f9430839e9c8cd0727fac880b22a;hb=f941ccddee3065d7531298e37ad4dcfcd892c1f8;hp=109b1283b9cadc833b9d5bc21d37f71a8ceb85c7;hpb=efd80a08bd5de21956872a615f1d03f2dd90cee2;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index 109b1283..b5640b61 100644 --- a/src/screens.c +++ b/src/screens.c @@ -68,8 +68,10 @@ void DrawMainMenu() return; } - /* needed if last screen was the level editor */ + /* unmap gadgets from last screen, map gadgets for main menu screen */ UnmapLevelEditorGadgets(); + UnmapGameButtons(); + MapTapeButtons(); FadeSounds(); GetPlayerConfig(); @@ -2112,6 +2114,11 @@ void HandleGameActions() void HandleVideoButtons(int mx, int my, int button) { + return; + + + + if (game_status != MAINMENU && game_status != PLAYING) return; @@ -2216,6 +2223,13 @@ void HandleVideoButtons(int mx, int my, int button) void HandleSoundButtons(int mx, int my, int button) { + + + + return; + + + if (game_status != PLAYING) return; @@ -2277,6 +2291,13 @@ void HandleSoundButtons(int mx, int my, int button) void HandleGameButtons(int mx, int my, int button) { + + + + return; + + + if (game_status != PLAYING) return;