X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_map.pas;h=c48d0991929a39fe7f3bd84dafc438f9a7bacf8a;hp=9943dba6998a8a40944a89aa3d03346db8189293;hb=6b0ba68063ba1c8f35903d3e939e5eeb91d2a58c;hpb=3566fbf25b72db352365ab8c71ca440368a3caae diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 9943dba..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