X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fgame%2Fg_player.pas;h=2b7fec91097ceb5f23aef7edde48d186ff294ab1;hb=91547a4c32733ddebebd278c42f290489daffa4e;hp=612a4fb0aee855f664ae797deb1113959ba59583;hpb=ae5dd5cd82a0c9548c27d2e646de1492e66d98df;p=d2df-sdl.git diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 612a4fb..2b7fec9 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -6304,10 +6304,10 @@ var vsPlayer, vsMonster, ok: Boolean; - function monsUpdate (monidx: Integer; mon: TMonster): Boolean; + function monsUpdate (mon: TMonster): Boolean; begin result := false; // don't stop - if (mon <> nil) and (mon.Live) and (mon.MonsterType <> MONSTER_BARREL) then + if mon.Live and (mon.MonsterType <> MONSTER_BARREL) then begin if not TargetOnScreen(mon.Obj.X+mon.Obj.Rect.X, mon.Obj.Y+mon.Obj.Rect.Y) then exit;