X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_player.pas;h=2b7fec91097ceb5f23aef7edde48d186ff294ab1;hb=77620b19e88e8eb4884be54475632754d8a4014e;hp=612a4fb0aee855f664ae797deb1113959ba59583;hpb=1b0f87b9a64f04be222df8d8d2de059cb139c98d;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;