diff options
author | piernov <piernov@piernov.org> | 2016-05-02 15:45:44 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-05-02 15:45:44 +0200 |
commit | 6bff76321ab05d6193bc1d35327cb44128f9ed66 (patch) | |
tree | d544640d6a33e54c94cded379ba0bfbd94bd6969 /js | |
parent | b60d56327a1b8531d15348034889e67f8b49444d (diff) | |
download | candybox-6bff76321ab05d6193bc1d35327cb44128f9ed66.tar.gz candybox-6bff76321ab05d6193bc1d35327cb44128f9ed66.tar.bz2 candybox-6bff76321ab05d6193bc1d35327cb44128f9ed66.tar.xz candybox-6bff76321ab05d6193bc1d35327cb44128f9ed66.zip |
Force reset mine on game reload
Diffstat (limited to 'js')
-rw-r--r-- | js/craftmine.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/craftmine.js b/js/craftmine.js index 608efb7..d649305 100644 --- a/js/craftmine.js +++ b/js/craftmine.js @@ -50,10 +50,11 @@ function withdrawMine() { function initCraftMine() { sendRequest("craftmine.php", "op=getCraftMine", function(ret) { data.gold = parseInt(ret.gold); // Server's response is a string + data.mine = 0; // Reset mine if(ret.shop) displayShop(ret.shop); displayInventory(ret.inventory); data.miners = parseInt(ret.miners); - updateData("gold","miners"); + updateData("gold", "mine", "miners"); }) } |