X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=blobdiff_plain;f=src%2Fgame%2Fg_panel.pas;h=382d6f9880159c3d1ac5db8a772878e56252d8d1;hp=fa4429256576dd18b109dd5ddaf4fbfe9871ac28;hb=3a76b7e2235c387754facfcccd6e4de45f36a460;hpb=dc37333a08186fc9d9ceffb8b7a0b49534fcf5ee diff --git a/src/game/g_panel.pas b/src/game/g_panel.pas index fa44292..382d6f9 100644 --- a/src/game/g_panel.pas +++ b/src/game/g_panel.pas @@ -25,7 +25,6 @@ uses type TAddTextureArray = array of record Texture: Cardinal; // Textures[Texture] - Anim: Boolean; end; ATextureID = array of record @@ -334,7 +333,7 @@ begin for i := 0 to Length(FTextureIDs)-1 do begin FTextureIDs[i].Texture := AddTextures[i].Texture; - FTextureIDs[i].Anim := AddTextures[i].Anim; + FTextureIDs[i].Anim := Textures[AddTextures[i].Texture].FramesCount > 0; if FTextureIDs[i].Anim then begin // Àíèìèðîâàííàÿ òåêñòóðà FTextureIDs[i].AnTex := TAnimationState.Create(True, Textures[AddTextures[i].Texture].Speed, Textures[AddTextures[i].Texture].FramesCount);