From: Ketmar Dark Date: Fri, 1 Sep 2017 00:47:04 +0000 (+0300) Subject: clearing input buffer after loading a map (fixes occasional button "sticking") X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=96165a1a95f0ea18a20dd8578fade4b46ec23746;p=d2df-sdl.git clearing input buffer after loading a map (fixes occasional button "sticking") --- diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 22a9aee..a4b2064 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -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);