From 9ba8ea50592447e5c5874f94338e7dd75f5a35ed Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 21 Jan 2022 23:14:08 +0300 Subject: [PATCH] graphics: lerp flags --- src/game/g_map.pas | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/g_map.pas b/src/game/g_map.pas index 39a6692..570d5e2 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -3169,6 +3169,7 @@ end; procedure g_Map_DrawFlags(); var i, dx: Integer; + tx, ty: Integer; Mirror: TMirrorType; begin if gGameSettings.GameMode <> GM_CTF then @@ -3181,6 +3182,8 @@ begin if State = FLAG_STATE_NONE then continue; + Obj.lerp(gLerpFactor, tx, ty); + if Direction = TDirection.D_LEFT then begin Mirror := TMirrorType.Horizontal; @@ -3192,7 +3195,7 @@ begin dx := 1; end; - Animation.Draw(Obj.X+dx, Obj.Y+1, Mirror); + Animation.Draw(tx+dx, ty+1, Mirror); if g_debug_Frames then begin -- 2.29.2