From: Stas'M Date: Fri, 26 Jul 2019 16:44:16 +0000 (+0300) Subject: Console: Properly store bind in case no down action specified X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=bbbeedfda9dba4529b0a7eac50ebbdb20cfbedb0 Console: Properly store bind in case no down action specified --- diff --git a/src/game/g_console.pas b/src/game/g_console.pas index 7bb1a8c..35f86b6 100644 --- a/src/game/g_console.pas +++ b/src/game/g_console.pas @@ -1874,6 +1874,8 @@ begin if (Length(gInputBinds[i].down) > 0) or (Length(gInputBinds[i].up) > 0) then begin Write(f, 'bind ', e_KeyNames[i], ' ', QuoteStr(GetCommandString(gInputBinds[i].down))); + if Length(gInputBinds[i].down) = 0 then + Write(f, '""'); if Length(gInputBinds[i].up) > 0 then Write(f, ' ', QuoteStr(GetCommandString(gInputBinds[i].up))); WriteLn(f, '');