Permalink
Browse files

Bug 736638: Fix northern zones in lavaland freezing tablets

  • Loading branch information...
1 parent e500915 commit 67e3ec0f75f745126ab902f837fb600a4e3a203c @glecollinet glecollinet committed Mar 20, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 client/js/game.js
View
@@ -2355,9 +2355,11 @@ function(InfoManager, BubbleManager, Renderer, Map, Animation, Sprite, AnimatedT
forEachEntityAround: function(x, y, r, callback) {
for(var i = x-r, max_i = x+r; i <= max_i; i += 1) {
for(var j = y-r, max_j = y+r; j <= max_j; j += 1) {
- _.each(this.renderingGrid[j][i], function(entity) {
- callback(entity);
- });
+ if(!this.map.isOutOfBounds(i, j)) {
+ _.each(this.renderingGrid[j][i], function(entity) {
+ callback(entity);
+ });
+ }
}
}
},

0 comments on commit 67e3ec0

Please sign in to comment.