X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_weapons.pas;h=2e2521b72f9956912574ac8a2eba69f71fe2ede4;hb=ab442f1e874abffad5a9823682636d07a2dee005;hp=0c8788129a170f7def99259fbbe97c1e43e92ce2;hpb=20cbf5c1dd17b4fde0968bb6583d1c91914d5e49;p=d2df-sdl.git diff --git a/src/game/g_weapons.pas b/src/game/g_weapons.pas index 0c87881..2e2521b 100644 --- a/src/game/g_weapons.pas +++ b/src/game/g_weapons.pas @@ -553,6 +553,7 @@ begin ShotType := WEAPON_FLAMETHROWER; Animation := nil; TextureID := 0; + g_Frames_Get(TextureID, 'FRAMES_FLAME'); Stopped := 0; end; end; @@ -1377,6 +1378,7 @@ begin triggers := nil; Animation := nil; TextureID := 0; + g_Frames_Get(TextureID, 'FRAMES_FLAME'); Stopped := 0; end; @@ -1948,9 +1950,9 @@ begin else tf := 3; - if (gTime mod tf = 0) and g_Frames_Get(_id, 'FRAMES_FLAME') then + if (gTime mod tf = 0) then begin - Anim := TAnimation.Create(_id, False, 2 + Random(2)); + Anim := TAnimation.Create(TextureID, False, 2 + Random(2)); Anim.Alpha := 0; case Stopped of 0: g_GFX_OnceAnim(cx-4+Random(8)-(Anim.Width div 2), @@ -2129,7 +2131,7 @@ begin begin if (Shots[i].ShotType = WEAPON_ROCKETLAUNCHER) then e_DrawAdv(TextureID, Obj.X, Obj.Y, 0, True, False, a, @p, M_NONE) - else + else if (Shots[i].ShotType <> WEAPON_FLAMETHROWER) then e_Draw(TextureID, Obj.X, Obj.Y, 0, True, False); end;