1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-22 21:52:46 +00:00

Fix FacingPlayer condition

This commit is contained in:
dawnDus 2022-01-28 12:46:33 -05:00
parent a02284c439
commit db50f67876
No known key found for this signature in database
GPG key ID: 972AABDE81848F21

View file

@ -1318,7 +1318,7 @@ impl TextScriptVM {
if direction == Direction::FacingPlayer {
npc.direction =
if game_scene.player1.x < npc.x { Direction::Right } else { Direction::Left };
if game_scene.player1.x < npc.x { Direction::Left } else { Direction::Right };
} else {
npc.direction = direction;
}
@ -1371,7 +1371,7 @@ impl TextScriptVM {
if direction == Direction::FacingPlayer {
npc.direction =
if game_scene.player1.x < npc.x { Direction::Right } else { Direction::Left };
if game_scene.player1.x < npc.x { Direction::Left } else { Direction::Right };
} else {
npc.direction = direction;
}
@ -1408,7 +1408,7 @@ impl TextScriptVM {
if direction == Direction::FacingPlayer {
npc.direction =
if game_scene.player1.x < npc.x { Direction::Right } else { Direction::Left };
if game_scene.player1.x < npc.x { Direction::Left } else { Direction::Right };
} else {
npc.direction = direction;
}