GIT
/
REPO
/
FRED-BOY
Projects
/
d2df-sdl.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
176b2c9
)
graphics: lerp flags
author
fgsfds <pvt.fgsfds@gmail.com>
Fri, 21 Jan 2022 20:14:08 +0000
(23:14 +0300)
committer
fgsfds <pvt.fgsfds@gmail.com>
Fri, 21 Jan 2022 20:14:08 +0000
(23:14 +0300)
src/game/g_map.pas
patch
|
blob
|
history
diff --git
a/src/game/g_map.pas
b/src/game/g_map.pas
index 39a6692f2b228df76f4274e25abc139397a58b8a..570d5e2413c66732c51084fdc17e37e62fc50708 100644
(file)
--- 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;
procedure g_Map_DrawFlags();
var
i, dx: Integer;
+ tx, ty: Integer;
Mirror: TMirrorType;
begin
if gGameSettings.GameMode <> GM_CTF then
Mirror: TMirrorType;
begin
if gGameSettings.GameMode <> GM_CTF then
@@
-3181,6
+3182,8
@@
begin
if State = FLAG_STATE_NONE then
continue;
if State = FLAG_STATE_NONE then
continue;
+ Obj.lerp(gLerpFactor, tx, ty);
+
if Direction = TDirection.D_LEFT then
begin
Mirror := TMirrorType.Horizontal;
if Direction = TDirection.D_LEFT then
begin
Mirror := TMirrorType.Horizontal;
@@
-3192,7
+3195,7
@@
begin
dx := 1;
end;
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
if g_debug_Frames then
begin
DEADSOFTWARE 2012-2025