summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2fc1afb)
raw | patch | inline | side by side (parent: 2fc1afb)
author | fgsfds <pvt.fgsfds@gmail.com> | |
Sat, 12 Aug 2017 20:03:48 +0000 (23:03 +0300) | ||
committer | fgsfds <pvt.fgsfds@gmail.com> | |
Sat, 12 Aug 2017 20:03:48 +0000 (23:03 +0300) |
src/game/g_weapons.pas | patch | blob | history |
diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas
index 504a1766747c7c54c1c206a10fc0b57566c2d20f..0c8788129a170f7def99259fbbe97c1e43e92ce2 100644 (file)
--- a/src/game/g_weapons.pas
+++ b/src/game/g_weapons.pas
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;
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;