X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_weapons.pas;h=0c8788129a170f7def99259fbbe97c1e43e92ce2;hb=20cbf5c1dd17b4fde0968bb6583d1c91914d5e49;hp=0b82e18f5343b542edcb69bfeb0f908f2f889233;hpb=2b4061ae07fe1bf12d49fc1213d7eb3e9e34ccb6;p=d2df-sdl.git diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas index 0b82e18..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; @@ -1933,7 +1933,7 @@ begin Stopped := MOVE_HITCEIL; end; - a := IfThen(Stopped = 0, 5, 1); + a := IfThen(Stopped = 0, 3, 1); // Åñëè â êîãî-òî ïîïàëè if g_Weapon_Hit(@Obj, a, SpawnerUID, HIT_FLAME, False) <> 0 then begin @@ -1943,7 +1943,12 @@ begin ShotType := 0; end; - if g_Frames_Get(_id, 'FRAMES_FLAME') and (gTime mod 2 = 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;