DEADSOFTWARE

render: separate animation drawing from game code
[d2df-sdl.git] / src / game / opengl / r_map.pas
index 9ab45a0ed4485e9d665b7660207e7cd9bbc0d9a6..525bf35e9dc09d0b1f88406659b09038589e6637 100644 (file)
@@ -30,8 +30,8 @@ implementation
   uses
     {$INCLUDE ../nogl/noGLuses.inc}
     SysUtils, Classes, Math,
-    e_graphics,
-    g_basic, g_game, g_options,
+    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