DEADSOFTWARE

render: use TAnimationState for monsters
[d2df-sdl.git] / src / game / g_textures.pas
index acac0c61d3b8a87cc78bc9598d65d834ef6817c2..aaa91b793fe590d5e3bec09c6f432b148141b148 100644 (file)
@@ -61,7 +61,7 @@ type
     procedure saveState (st: TStream);
     procedure loadState (st: TStream);
 
-//    function totalFrames (): Integer; inline;
+    function totalFrames (): Integer; inline;
 
   public
     property played: Boolean read mPlayed;
@@ -236,6 +236,11 @@ begin
   reset
 end;
 
+function TAnimationState.totalFrames (): Integer; inline;
+begin
+  result := mLength
+end;
+
 procedure TAnimationState.saveState (st: TStream);
 begin
   if (st = nil) then exit;