|
@@ -157,10 +157,11 @@ class Info_Gates extends Object_ext {
|
|
|
$nextId = $gateId;
|
|
|
foreach (GameConfig::gate() as $k => $v) {
|
|
|
isEditor() and $v = new \sm_gate();
|
|
|
- if ($v->unlockGateId == $this->CurrentGateId) {
|
|
|
+ if ($v->unlockGateId == $gateId) {
|
|
|
$nextId = $v->gateId;
|
|
|
}
|
|
|
}
|
|
|
+// echoLine("解锁下一关卡 $nextId");
|
|
|
if (Ins_GateInfo::gateNum($this->UnlockedGatesMaxId) < Ins_GateInfo::gateNum($nextId)# 下一关尚未解锁
|
|
|
&& !StlUtil::dictHasProperty($this->GateList, $nextId)) {
|
|
|
// $this->CurrentGateId = $nextId; # 不再自动推到下一关, -2024.5.31
|