Эх сурвалжийг харах

[fixed] qsp analyzer says its an error, the code seemed to work fine anyway but oh well....

LinaHirata 5 сар өмнө
parent
commit
504dc46d1a

+ 6 - 6
locations/Cheatmenu_din.qsrc

@@ -2213,11 +2213,11 @@ $cheatmenu['theme_customize_input'] = {
 		end
 		if arrsize('temp_result') = 1:
 			if $ARGS[1] = 'red':
-				result = ((ARGS[2] and -256) or temp_result)
+				result = ((ARGS[2] and (-256)) or temp_result)
 			elseif $ARGS[1] = 'green':
-				result = ((ARGS[2] and -65281) or (temp_result * 256))
+				result = ((ARGS[2] and (-65281)) or (temp_result * 256))
 			elseif $ARGS[1] = 'blue':
-				result = ((ARGS[2] and -16711681) or (temp_result * 65536))
+				result = ((ARGS[2] and (-16711681)) or (temp_result * 65536))
 			end
 		end
 		killvar 'temp_result'
@@ -2274,11 +2274,11 @@ $cheatmenu['theme_customize_increment'] = {
 		result = dyneval($cheatmenu['extract_color_component'], $ARGS[1], ARGS[2]) + ARGS[3]
 		result = iif(result > 255, result - 256, iif(result < 0, 256 + result, result))
 		if $ARGS[1] = 'red':
-			result = ((ARGS[2] and -256) or result)
+			result = ((ARGS[2] and (-256)) or result)
 		elseif $ARGS[1] = 'green':
-			result = ((ARGS[2] and -65281) or (result * 256))
+			result = ((ARGS[2] and (-65281)) or (result * 256))
 		elseif $ARGS[1] = 'blue':
-			result = ((ARGS[2] and -16711681) or (result * 65536))
+			result = ((ARGS[2] and (-16711681)) or (result * 65536))
 		else
 			result = ARGS[2]
 		end