mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 19:06:39 +00:00
Now only allies see the disconnected status
This commit is contained in:
@@ -293,7 +293,12 @@ export class PlayerView {
|
||||
return this.data.hasSpawned;
|
||||
}
|
||||
isDisconnected(): boolean {
|
||||
return this.data.isDisconnected;
|
||||
return (
|
||||
this.data.isDisconnected &&
|
||||
this.game.myPlayer() !== null &&
|
||||
(this.isAlliedWith(this.game.myPlayer()!) ||
|
||||
this.game.myPlayer()!.isAlliedWith(this))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user