Skip to content

Commit 9875c94

Browse files
committed
rpgtkoolmv#175 reset scene frame count at setup new game
1 parent 3b2e2de commit 9875c94

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

js/rpg_managers/DataManager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ DataManager.setupNewGame = function() {
217217
$gamePlayer.reserveTransfer($dataSystem.startMapId,
218218
$dataSystem.startX, $dataSystem.startY);
219219
Graphics.frameCount = 0;
220+
SceneManager.resetFrameCount();
220221
};
221222

222223
DataManager.setupBattleTest = function() {

js/rpg_managers/SceneManager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ SceneManager.setFrameCount = function(frameCount) {
139139
this._frameCount = frameCount;
140140
};
141141

142+
SceneManager.resetFrameCount = function() {
143+
this._frameCount = 0;
144+
};
145+
142146
SceneManager.requestUpdate = function() {
143147
if (!this._stopped) {
144148
requestAnimationFrame(this.update.bind(this));

0 commit comments

Comments
 (0)