Selaa lähdekoodia

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

julzor 5 vuotta sitten
vanhempi
sitoutus
37ef35397f
1 muutettua tiedostoa jossa 6 lisäystä ja 2 poistoa
  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>'