mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-05-06 06:14:29 +00:00
Fix MYB bumping away from NPC when direction >4
This commit is contained in:
parent
2be1c422d6
commit
0330cf3b2b
|
@ -794,7 +794,9 @@ impl TextScriptVM {
|
|||
game_scene.player1.vel_y = 0x200;
|
||||
game_scene.player2.vel_y = 0x200;
|
||||
}
|
||||
Direction::FacingPlayer => {
|
||||
_ => (),
|
||||
}
|
||||
} else {
|
||||
for npc in game_scene.npc_list.iter_alive() {
|
||||
if npc.event_num == new_direction as u16 {
|
||||
if game_scene.player1.x >= npc.x {
|
||||
|
@ -816,8 +818,6 @@ impl TextScriptVM {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
exec_state = TextScriptExecutionState::Running(event, cursor.position() as u32);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue