diff --git a/js/userinterface.js b/js/userinterface.js index 0fe6305..c4f614b 100644 --- a/js/userinterface.js +++ b/js/userinterface.js @@ -135,4 +135,11 @@ function buildEvents(){ $('#buildselect').fadeOut(200) } }) + $('#screen').click(function() { + if(mode="build"){ + if(factorys[currentfactory].tiles[cursorScreenX][cursorScreenY]!=null){ + factorys[currentfactory].tiles[cursorScreenX][cursorScreenY] = new toBuild(cursorScreenX,cursorScreenY) + } + } + }) }