DEADSOFTWARE

clearing input buffer after loading a map (fixes occasional button "sticking")
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Fri, 1 Sep 2017 00:47:04 +0000 (03:47 +0300)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Fri, 1 Sep 2017 00:47:35 +0000 (03:47 +0300)
src/game/g_map.pas

index 22a9aee280e1d2d8295ea8191655dd3645a10936..a4b2064a98e26b9609aa691c77fcb2f90eb61c2f 100644 (file)
@@ -218,7 +218,7 @@ var
 implementation
 
 uses
-  g_main, e_log, SysUtils, g_items, g_gfx, g_console,
+  e_input, g_main, e_log, SysUtils, g_items, g_gfx, g_console,
   GL, GLExt, g_weapons, g_game, g_sound, e_sound, CONFIG,
   g_options, g_triggers, g_player,
   Math, g_monsters, g_saveload, g_language, g_netmsg,
@@ -2108,6 +2108,7 @@ begin
   finally
     sfsGCEnable(); // enable releasing unused volumes
     mapReader.Free();
+    e_ClearInputBuffer(); // why not?
   end;
 
   e_WriteLog('Done loading map.', MSG_NOTIFY);