X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_basic.pas;h=530bf8e4c2ea873385be3eb3403a548122bfdd8f;hb=e796653d0ccd214192261ed1715dc68806758926;hp=8069029bc2c8338113244ef0f753b50659652a5d;hpb=a0b4df67e96c6b5e55e95269a87975df67692e6b;p=d2df-sdl.git diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas index 8069029..530bf8e 100644 --- a/src/game/g_basic.pas +++ b/src/game/g_basic.pas @@ -138,7 +138,7 @@ begin if gPlayers = nil then Exit; for a := 0 to High(gPlayers) do - if (gPlayers[a] <> nil) and gPlayers[a].Live then + if (gPlayers[a] <> nil) and gPlayers[a].alive then if gPlayers[a].Collide(X, Y, Width, Height) then begin Result := True; @@ -959,7 +959,7 @@ begin begin p := g_Player_Get(UID); if p = nil then Exit; - if not p.Live then Exit; + if not p.alive then Exit; o^ := p.Obj; end; @@ -968,7 +968,7 @@ begin begin m := g_Monsters_ByUID(UID); if m = nil then Exit; - if not m.Live then Exit; + if not m.alive then Exit; o^ := m.Obj; end;