From 20cbf5c1dd17b4fde0968bb6583d1c91914d5e49 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Sat, 12 Aug 2017 23:03:48 +0300 Subject: [PATCH] more fucking flamer graphics fixes --- src/game/g_weapons.pas | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas index 504a176..0c87881 100644 --- a/src/game/g_weapons.pas +++ b/src/game/g_weapons.pas @@ -1697,7 +1697,7 @@ end; procedure g_Weapon_Update(); var - i, a, h, cx, cy, oldvx, oldvy: Integer; + i, a, h, cx, cy, oldvx, oldvy, tf: Integer; _id: DWORD; Anim: TAnimation; t: DWArray; @@ -1943,7 +1943,12 @@ begin ShotType := 0; end; - if g_Frames_Get(_id, 'FRAMES_FLAME') and (gTime mod 3 = 0) then + if Stopped = 0 then + tf := 2 + else + tf := 3; + + if (gTime mod tf = 0) and g_Frames_Get(_id, 'FRAMES_FLAME') then begin Anim := TAnimation.Create(_id, False, 2 + Random(2)); Anim.Alpha := 0; -- 2.29.2