X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fscreens.c;h=b5640b614922f9430839e9c8cd0727fac880b22a;hp=109b1283b9cadc833b9d5bc21d37f71a8ceb85c7;hb=cc17a49a1a63c1df0e55a5afd510698e21b71dfe;hpb=23c658debac513b4ab7e2d1c0f5a8cc011f6927b 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;