DEADSOFTWARE

render: separate player model logic and drawing
[d2df-sdl.git] / src / game / g_gui.pas
index 2200703437db6be9fc693d2bdfbd83dc76a55b31..fb461784f5468c4b9b2447229a21d7515b26071d 100644 (file)
@@ -552,7 +552,7 @@ implementation
 uses
   {$INCLUDE ../nogl/noGLuses.inc}
   g_textures, g_sound, SysUtils, e_res,
-  g_game, Math, StrUtils, g_player, g_options, g_console,
+  g_game, Math, StrUtils, g_player, g_options, g_console, r_playermodel,
   g_map, g_weapons, xdynrec, wadreader;
 
 
@@ -2656,7 +2656,8 @@ begin
 
   DrawBox(FX, FY, 4, 4);
 
-  if FModel <> nil then FModel.Draw(FX+4, FY+4);
+  if FModel <> nil then
+    r_PlayerModel_Draw(FModel, FX+4, FY+4);
 end;
 
 procedure TGUIModelView.NextAnim();