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:
parent
a02284c439
commit
db50f67876
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue