X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_map.pas;h=c48d0991929a39fe7f3bd84dafc438f9a7bacf8a;hb=4c631bfacf36675aee335a5c0910a754beb73e1d;hp=81eb17e904044c36be49914f5172380a7b8cbdd6;hpb=05c4488d67219fb60a2687af2a06397fea1dffbb;p=d2df-sdl.git diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 81eb17e..c48d099 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -1084,8 +1084,7 @@ begin end; // ýòî ïòèöà? ýòî ñàìîë¸ò? - if (TextureWAD[0] = 'D') and (TextureWAD[1] = 'F') and - (TextureWAD[2] = 'W') and (TextureWAD[3] = 'A') and (TextureWAD[4] = 'D') then + if isWadData(TextureWAD, ResLength) then begin // íåò, ýòî ñóïåðìåí! if not WAD.ReadMemory(TextureWAD, ResLength) then @@ -2261,7 +2260,7 @@ begin finally sfsGCEnable(); // enable releasing unused volumes //mapReader.Free(); - e_ClearInputBuffer(); // why not? + e_UnpressAllKeys; // why not? if not mapOk then begin gCurrentMap.Free();