Update userinterface.js
This commit is contained in:
parent
fc5519d1b4
commit
0623179a62
|
|
@ -135,4 +135,11 @@ function buildEvents(){
|
||||||
$('#buildselect').fadeOut(200)
|
$('#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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue