diff --git a/src/game/g_map.pas b/src/game/g_map.pas
index 81eb17e904044c36be49914f5172380a7b8cbdd6..c48d0991929a39fe7f3bd84dafc438f9a7bacf8a 100644 (file)
--- a/src/game/g_map.pas
+++ b/src/game/g_map.pas
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
finally
sfsGCEnable(); // enable releasing unused volumes
//mapReader.Free();
- e_ClearInputBuffer(); // why not?
+ e_UnpressAllKeys; // why not?
if not mapOk then
begin
gCurrentMap.Free();