OSDN Git Service

日付を1日変更
[yukkurioverwint/YukkuriOverwinter.git] / ctrl.js
diff --git a/ctrl.js b/ctrl.js
index 3eb768c..0e76377 100644 (file)
--- a/ctrl.js
+++ b/ctrl.js
@@ -20,7 +20,7 @@ var Ctrl = enchant.Class.create({
                this.min = Math.floor(sec % 60);
                var _min = sec / 60;
                this.hour = Math.floor(_min % 24);
-               this.day = Math.floor(_min / 24 % 30);
+               this.day = Math.floor(_min / 24 % 30) - 1;
        },
        init : function (game){
                this.game = game;