X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fopengl%2Fr_weapons.pas;h=e469cf63596aac661a57a1777c12ce22700c72e9;hb=df1f12c26369a0d5e9e996583b30c9879570fe99;hp=fb5e612f1c63e144ce5d9ed0f2ca33edca16ff51;hpb=ac375654231a010b2f2bdbd90dd74d1c2903f967;p=d2df-sdl.git diff --git a/src/game/opengl/r_weapons.pas b/src/game/opengl/r_weapons.pas index fb5e612..e469cf6 100644 --- a/src/game/opengl/r_weapons.pas +++ b/src/game/opengl/r_weapons.pas @@ -144,12 +144,12 @@ implementation p.X := Obj.Rect.Width div 2; p.Y := Obj.Rect.Height div 2; - if Animation <> nil then + if Animation.IsValid() then begin if Shots[i].ShotType in [WEAPON_BARON_FIRE, WEAPON_MANCUB_FIRE, WEAPON_SKEL_FIRE] then - r_AnimationState_DrawEx(ShotFrames[Shots[i].ShotType], Animation, fX, fY, 0, TMirrorType.None, False, p, a) + r_AnimState_DrawEx(ShotFrames[Shots[i].ShotType], Animation, fX, fY, 0, TMirrorType.None, False, p, a) else - r_AnimationState_Draw(ShotFrames[Shots[i].ShotType], Animation, fX, fY, 0, TMirrorType.None, False); + r_AnimState_Draw(ShotFrames[Shots[i].ShotType], Animation, fX, fY, 0, TMirrorType.None, False); end else if ShotTexture[Shots[i].ShotType] <> 0 then begin