X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fopengl%2Fr_player.pas;h=a7a01676b190617fff622c5addf09d72998e9613;hb=f4de0d349a282253a43c8dcf7cd69e098657c312;hp=03c3d10278e86dafcfd196ff54c87235f564a290;hpb=7ae02187ebbea768a537d385ca8c39e2b604e0fb;p=d2df-sdl.git diff --git a/src/game/opengl/r_player.pas b/src/game/opengl/r_player.pas index 03c3d10..a7a0167 100644 --- a/src/game/opengl/r_player.pas +++ b/src/game/opengl/r_player.pas @@ -17,7 +17,7 @@ unit r_player; interface - uses g_player, e_graphics; // TPlayer, TRGB + uses g_player, g_base; // TPlayer, TRGB procedure r_Player_DrawAll; procedure r_Player_DrawDebug (p: TPlayer); @@ -46,7 +46,7 @@ implementation {$IFDEF ENABLE_HOLMES} g_holmes, {$ENDIF} - r_playermodel + r_playermodel, r_graphics, r_animations ; procedure r_Player_DrawAll; @@ -331,7 +331,7 @@ begin if p.PunchAnim <> nil then begin - p.PunchAnim.Draw(fX + IfThen(p.Direction = TDirection.D_LEFT, 15 - p.Obj.Rect.X, p.Obj.Rect.X - 15), fY + fSlope + p.Obj.Rect.Y - 11, Mirror); + r_Animation_Draw(p.PunchAnim, fX + IfThen(p.Direction = TDirection.D_LEFT, 15 - p.Obj.Rect.X, p.Obj.Rect.X - 15), fY + fSlope + p.Obj.Rect.Y - 11, Mirror); if p.PunchAnim.played then begin p.PunchAnim.Free; @@ -795,12 +795,12 @@ begin p.Obj.lerp(gLerpFactor, fX, fY); if p.Animation <> nil then - p.Animation.Draw(fX, fY, TMirrorType.None); + r_Animation_Draw(p.Animation, fX, fY, TMirrorType.None); if p.AnimationMask <> nil then begin e_Colors := p.Color; - p.AnimationMask.Draw(fX, fY, TMirrorType.None); + r_Animation_Draw(p.AnimationMask, fX, fY, TMirrorType.None); e_Colors.R := 255; e_Colors.G := 255; e_Colors.B := 255;