DEADSOFTWARE

render: separate animation drawing from game code
[d2df-sdl.git] / src / game / opengl / r_gfx.pas
index 293e3aa174f0171f26be3f375135519062fa81a4..0bd271a1f7840b3802552a83c058abac072860f4 100644 (file)
@@ -25,7 +25,7 @@ implementation
     {$INCLUDE ../nogl/noGLuses.inc}
     SysUtils, Classes, Math,
     utils,
-    g_base, r_graphics, g_options,
+    g_base, r_graphics, g_options, r_animations,
     g_game,
     g_gfx
   ;
@@ -81,7 +81,7 @@ begin
         begin
           fx := nlerp(oldx, x, gLerpFactor);
           fy := nlerp(oldy, y, gLerpFactor);
-          Animation.Draw(x, y, TMirrorType.None);
+          r_Animation_Draw(Animation, x, y, TMirrorType.None);
         end;
       end;
     end;