Skip to content

Commit

Permalink
Saloon - fix pianos spawning on balconies
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobFischer committed Nov 13, 2016
1 parent d2178a9 commit 72d5707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion games/saloon/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ var Game = Class(TwoPlayerGame, TurnBasedGame, TiledGame, {
y = Math.round(distributionY.ppf(Math.random()));
var tile = this.getTile(x, y);

if(tile && !tile.furnishing) {
if(tile && !tile.furnishing && !tile.isBalcony) {
break; // because we found a tile that does not have a furnishing to spawn one on, else we continue our random search
}
}
Expand Down

0 comments on commit 72d5707

Please sign in to comment.