Fixed actor position check on windows build
@@ -720,14 +720,9 @@ void Script_ActorPush_b()
*/
void Script_IfActorPos_b()
{
- UBYTE pos_x, pos_y;
-
- pos_x = (script_cmd_args[1] << 3) + 8;
- pos_y = (script_cmd_args[2] << 3) + 8;
-
if (
- (actors[script_cmd_args[0]].pos.x == pos_x) &&
- (actors[script_cmd_args[0]].pos.y == pos_y))
+ ((script_cmd_args[1] << 3) + 8 == actors[script_cmd_args[0]].pos.x) &&
+ ((script_cmd_args[2] << 3) + 8 == actors[script_cmd_args[0]].pos.y))
{ // True path, jump to position specified by ptr
script_ptr = script_start_ptr + (script_cmd_args[3] * 256) + script_cmd_args[4];
}
