Update userinterface.js
This commit is contained in:
parent
0623179a62
commit
748c2df27c
|
|
@ -136,9 +136,9 @@ function buildEvents(){
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
$('#screen').click(function() {
|
$('#screen').click(function() {
|
||||||
if(mode="build"){
|
if(mode=="build"){
|
||||||
if(factorys[currentfactory].tiles[cursorScreenX][cursorScreenY]!=null){
|
if(factorys[currentFactory].tiles[cursorScreenX][cursorScreenY]!=null){
|
||||||
factorys[currentfactory].tiles[cursorScreenX][cursorScreenY] = new toBuild(cursorScreenX,cursorScreenY)
|
factorys[currentFactory].tiles[cursorScreenX][cursorScreenY] = new toBuild(cursorScreenX,cursorScreenY)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue