Fixed issue with "If Input" on Windows build always saying input was "A"
@@ -603,7 +603,10 @@ void Script_SetFlagValue_b()
*/
void Script_IfInput_b()
{
- if ((joy & script_cmd_args[0]) != 0)
+ UBYTE mask;
+ mask = 0;
+ mask = script_cmd_args[0];
+ if ((joy & mask) != 0)
{ // True path, jump to position specified by ptr
script_ptr = script_start_ptr + (script_cmd_args[1] * 256) + script_cmd_args[2];
}
