Skip to content

Commit 58eb46b

Browse files
committed
Maybe handle the different simulation modes correctly
1 parent 5c9666c commit 58eb46b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/game/action/MapActionHandler.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,12 @@ class MapActionHandler implements ClickEventListener {
5353
static spawnSelectAction(this: void, tile: number) {
5454
if (territoryManager.getOwner(tile) === territoryManager.OWNER_NONE - 1) return;
5555
if (!spawnManager.isValidSpawnPoint(tile)) return;
56-
if (!isLocalGame) sendPacket(new SpawnRequestPacket(tile));
56+
if (!isLocalGame) {
57+
sendPacket(new SpawnRequestPacket(tile));
58+
return;
59+
}
5760
spawnManager.selectSpawnPoint(clientPlayer.id, tile);
61+
spawnManager.finalizeSelection();
5862
}
5963

6064
/**

0 commit comments

Comments
 (0)