Skip to content

Commit 2141f82

Browse files
committed
fix after review
1 parent c275d63 commit 2141f82

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

src/core/execution/SpawnExecution.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ export class SpawnExecution implements Execution {
5252
if (player.spawnTile() === undefined) {
5353
player.setSpawnTile(this.tile);
5454
}
55-
56-
player.setHasSpawned(true);
5755
}
5856

5957
isActive(): boolean {

src/core/game/Game.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,6 @@ export interface Player {
546546
markDisconnected(isDisconnected: boolean): void;
547547

548548
hasSpawned(): boolean;
549-
setHasSpawned(hasSpawned: boolean): void;
550549
setSpawnTile(spawnTile: TileRef): void;
551550
spawnTile(): TileRef | undefined;
552551

src/core/game/PlayerImpl.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ export class PlayerImpl implements Player {
101101
public _outgoingAttacks: Attack[] = [];
102102
public _outgoingLandAttacks: Attack[] = [];
103103

104-
private _hasSpawned = false;
105104
private _spawnTile: TileRef | undefined;
106105
private _isDisconnected = false;
107106

@@ -345,11 +344,7 @@ export class PlayerImpl implements Player {
345344
}
346345

347346
hasSpawned(): boolean {
348-
return this._hasSpawned;
349-
}
350-
351-
setHasSpawned(hasSpawned: boolean): void {
352-
this._hasSpawned = hasSpawned;
347+
return this._spawnTile !== undefined;
353348
}
354349

355350
setSpawnTile(spawnTile: TileRef): void {

0 commit comments

Comments
 (0)