DEADSOFTWARE

render: separate animation drawing from game code
[d2df-sdl.git] / src / game / opengl / r_map.pas
index ef75c14c223452db1e12a37d1c66411b552b21aa..525bf35e9dc09d0b1f88406659b09038589e6637 100644 (file)
@@ -30,7 +30,7 @@ implementation
   uses
     {$INCLUDE ../nogl/noGLuses.inc}
     SysUtils, Classes, Math,
-    r_graphics,
+    r_graphics, r_animations,
     g_base, g_basic, g_game, g_options,
     g_panel, g_map,
     r_panel
@@ -129,7 +129,7 @@ begin
             dx := 1;
           end;
 
-        Animation.Draw(Obj.X+dx, Obj.Y+1, Mirror);
+        r_Animation_Draw(Animation, Obj.X + dx, Obj.Y + 1, Mirror);
 
         if g_debug_Frames then
         begin