Merge pull request #1290 from jayant1992/master

Takes care of minor issues with terrain generator
This commit is contained in:
Nick Winter 2014-07-10 13:24:58 -07:00
commit b82e828272
3 changed files with 4 additions and 1 deletions

View file

@ -11,4 +11,5 @@ block modal-body-content
span(data-i18n="ladder.small") Small
div.preset-name
span(data-i18n="ladder.grassy") Grassy
//- for model in models
//- for model in models
block modal-footer

View file

@ -228,6 +228,7 @@ module.exports = class ThangsTabView extends View
for thang in e.thangs
@selectAddThangType thang.id
@addThang @addThangType, thang.pos
@selectAddThangType null
# TODO: figure out a good way to have all Surface clicks and Treema clicks just proxy in one direction, so we can maintain only one way of handling selection and deletion
onExtantThangSelected: (e) ->

View file

@ -91,6 +91,7 @@ module.exports = class TerrainRandomiseModal extends ModalView
Backbone.Mediator.publish('randomise:terrain-generated',
'thangs': @thangs
)
@hide()
randomiseThangs: (presetName, presetSize) ->
preset = presets[presetName]