瀏覽代碼

[fixed] the cycle menu was available even if the menu was disabled

julzor 5 年之前
父節點
當前提交
37ef35397f
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      locations/stat_display.qsrc

+ 6 - 2
locations/stat_display.qsrc

@@ -565,8 +565,12 @@ elseif placebopart > 0 and LutH > 0 and knowpreg = 0:
 	$stat_msg += '</font>'
 end
 
-
-if $cycreport_txt ! null: $stat_msg += '<BR><a href="exec:dynamic $d_cycreport_choice"><<$cycreport_txt>></a><br>'
+	if $cycreport_txt ! null and menu_off = 0: 
+		$stat_msg += '<BR><a href="exec:dynamic $d_cycreport_choice"><<$cycreport_txt>></a><br>'
+	elseif $cycreport_txt ! null and menu_off = 1:
+		$stat_msg += '<BR><a href="exec:gs ''obj_din'', ''menu_disabled''"><<$cycreport_txt>></a><br>'
+	end
+end
 
 !!if shame > 0:$stat_msg += '<BR><<$shame>>' & $stat_msg += '<BR>'