From 280b293fb77067fb298eddecfa26cebfb7dc7594 Mon Sep 17 00:00:00 2001 From: Aaron Mueller Date: Sun, 7 Dec 2014 17:56:52 +0100 Subject: [PATCH] small fixes after merge --- src/game.coffee | 8 ++++---- src/hud.coffee | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/game.coffee b/src/game.coffee index a8b4a0c..b2938a1 100644 --- a/src/game.coffee +++ b/src/game.coffee @@ -89,8 +89,8 @@ app.game = if @checkPosition(@currentSelectedTile) if @checkResource('stardust', 20, true) @currentSelectedTile.entity = new Silo - else - @speechbubble.say 'nores' + else + @speechbubble.say 'nores' else @speechbubble.say 'toofar' @@ -100,8 +100,8 @@ app.game = if @checkPosition(@currentSelectedTile) if @checkResource('notch', 10, true) @currentSelectedTile.entity = new Solarpanel - else - @speechbubble.say 'nores' + else + @speechbubble.say 'nores' else @speechbubble.say 'toofar' checkResource: (type, amount, drain = false) -> diff --git a/src/hud.coffee b/src/hud.coffee index 1a7e96d..6a4575d 100644 --- a/src/hud.coffee +++ b/src/hud.coffee @@ -16,7 +16,6 @@ app.game.hud = render: -> panelusage = 'resources' - app.layer.drawImage app.images.hud, 0, 11*8 if @buildinfo @@ -32,7 +31,7 @@ app.game.hud = panelusage = 'entity' app.layer.drawRegion app.images.entitydetails, currentSelectedTile.entity.spritedetail(), 12, 95 else - app.layer.drawRegion app.images.layerdetails, currentSelectedTile.getCurrentLayer().spritedetail, 1, 95 + app.layer.drawRegion app.images.layerdetails, currentSelectedTile.getCurrentLayer().spritedetail, 12, 95 # silo capacity usedSiloStoragePercent = Math.round((100 / app.game.availableSiloStorage()) * app.game.usedSiloStorage())