DEADSOFTWARE

fix zip-packed animated textures
[d2df-sdl.git] / src / game / g_map.pas
index 9943dba6998a8a40944a89aa3d03346db8189293..c48d0991929a39fe7f3bd84dafc438f9a7bacf8a 100644 (file)
@@ -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