Skip to content

Commit

Permalink
Map: send controls after late-joins
Browse files Browse the repository at this point in the history
Closes #86
  • Loading branch information
sirDonovan committed Apr 17, 2024
1 parent ead83e4 commit 6b9335a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/games/templates/map-currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export abstract class MapCurrencyGame extends MapGame {
onAddPlayer(player: Player, lateJoin?: boolean): boolean {
if (lateJoin) {
this.positionPlayer(player);
this.sendPlayerControls(player);
}
this.lives.set(player, this.startingLives);
return true;
Expand Down
1 change: 1 addition & 0 deletions src/games/templates/map-damage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export abstract class MapDamageGame extends MapGame {
onAddPlayer(player: Player, lateJoin?: boolean): boolean {
if (lateJoin) {
this.positionPlayer(player);
this.sendPlayerControls(player);
}
return true;
}
Expand Down

0 comments on commit 6b9335a

Please sign in to comment.