Parcourir la source

[fixed] `hex_str_to_int` now also works with lower case (through `ucase()`)

LinaHirata il y a 5 mois
Parent
commit
26676b31ab
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      locations/shortgs.qsrc

+ 1 - 0
locations/shortgs.qsrc

@@ -1106,6 +1106,7 @@ end
 !    example: func('shortgs', 'hex_str_to_int', 'A1C')
 !    example: func('shortgs', 'hex_str_to_int', $bcolor)
 if $ARGS[0] = 'hex_str_to_int':
+	$ARGS[1] = $ucase($ARGS[1])
 	shortgs_i = 1
 	:hex_to_int_loop
 		result = result * 16 + instr(1, '123456789ABCDEF', mid($ARGS[1], shortgs_i, 1))