mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Fixed an infinite loop bug in CoordinateGrid.
This commit is contained in:
parent
607a2a133f
commit
ac2c39a266
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ module.exports = class CoordinateGrid extends CocoClass
|
|||
toString: -> '<CoordinateGrid>'
|
||||
|
||||
build: (worldSize) ->
|
||||
worldWidth = worldSize[0] ? 80
|
||||
worldHeight = worldSize[1] ? 68
|
||||
worldWidth = worldSize[0] or 80
|
||||
worldHeight = worldSize[1] or 68
|
||||
@gridContainer = new createjs.Container()
|
||||
@gridShape = new createjs.Shape()
|
||||
@gridContainer.addChild @gridShape
|
||||
|
|
Loading…
Reference in a new issue