设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2397|回复: 1
打印 上一主题 下一主题

[交流讨论] 1.60 mv事件机制 的错误

[复制链接]

Lv3.寻梦者

梦石
0
星屑
1232
在线时间
1017 小时
注册时间
2011-4-30
帖子
1516
跳转到指定楼层
1
发表于 2018-4-4 21:11:58 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有帐号?注册会员

x
本帖最后由 汪汪 于 2018-4-4 21:13 编辑





1.30版

JAVASCRIPT 代码复制
  1. // Break Loop
  2. Game_Interpreter.prototype.command113 = function() {
  3.     while (this._index < this._list.length - 1) {
  4.         this._index++;
  5.         var command = this.currentCommand();
  6.         if (command.code === 413 && command.indent < this._indent) {
  7.             break;
  8.         }
  9.     }
  10.     return true;
  11. };

1.60版

JAVASCRIPT 代码复制
  1. // Break Loop
  2. Game_Interpreter.prototype.command113 = function () {
  3.     var depth = 0;
  4.     while (this._index < this._list.length - 1) {
  5.         this._index++;
  6.         var command = this.currentCommand();
  7.  
  8.         if (command.code === 112)
  9.             depth++;
  10.  
  11.         if (command.code === 413 && command.indent < this._indent) {
  12.             if (depth > 0)
  13.                 depth--;
  14.             else
  15.                 break;
  16.         }
  17.     }
  18.     return true;
  19. };

Lv4.逐梦者

梦石
0
星屑
7417
在线时间
947 小时
注册时间
2017-9-27
帖子
583
2
发表于 2018-4-5 18:52:40 | 只看该作者
1.6不是收回了吗?建议先别折腾1.6了,降回1.5.x用着,等1.6重新放出再看要不要升级。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-4-25 17:15

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表