瀏覽代碼

[added] cheat menu var cleanup

Lusticon 5 月之前
父節點
當前提交
94e836d2e4
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      locations/nichUtil.qsrc

+ 6 - 0
locations/nichUtil.qsrc

@@ -24,6 +24,12 @@ if $ARGS[0] = '' or $ARGS[0] = 'start':
 	'This page should never appear. Please report this bug including a description of how you got here.'
 
 elseif $ARGS[0] = 'debug':
+	!reset cheat menu
+	if settingmode > 0:
+		killvar 'settingmode'
+		killvar 'menu_off'
+	end
+
 	if $ARGS[1] = 'debugToggle':
 		nichDebug = 1 - nichDebug
 	elseif $ARGS[1] = 'galaTrainingToggle':