From: fgsfds Date: Sat, 12 Aug 2017 20:03:48 +0000 (+0300) Subject: more fucking flamer graphics fixes X-Git-Url: https://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=20cbf5c1dd17b4fde0968bb6583d1c91914d5e49 more fucking flamer graphics fixes --- 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;