diff --git a/src/game/g_basic.pas b/src/game/g_basic.pas
index 8069029bc2c8338113244ef0f753b50659652a5d..530bf8e4c2ea873385be3eb3403a548122bfdd8f 100644 (file)
--- a/src/game/g_basic.pas
+++ b/src/game/g_basic.pas
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;
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;
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;