Skip to content

Commit a0e38a6

Browse files
authored
Merge pull request rpgtkoolmv#191 from rpgtkoolmv/fix_freeze_rarely
Fix the game screen freezes occasionally even though you hear the sounds
2 parents 483ac0c + 127ce4d commit a0e38a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/rpg_core/Graphics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Graphics.tickEnd = function() {
161161
* @param {Stage} stage The stage object to be rendered
162162
*/
163163
Graphics.render = function(stage) {
164-
if (this._skipCount === 0) {
164+
if (this._skipCount <= 0) {
165165
var startTime = Date.now();
166166
if (stage) {
167167
this._renderer.render(stage);

0 commit comments

Comments
 (0)