1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-07 19:46:53 +00:00

Make <MOV reset interaction flag, fixed <MYB

This commit is contained in:
jake 2021-06-30 18:48:26 -07:00
parent a085037fc6
commit cfbb2c3286

View file

@ -914,6 +914,8 @@ impl TextScriptVM {
Direction::Bottom => {
game_scene.player1.vel_y = 0x200;
game_scene.player2.vel_y = 0x200;
game_scene.player1.cond.set_interacted(true);
game_scene.player2.cond.set_interacted(true);
}
Direction::FacingPlayer => {
// todo npc direction dependent bump
@ -1254,6 +1256,9 @@ impl TextScriptVM {
let pos_x = read_cur_varint(&mut cursor)? as i32 * block_size;
let pos_y = read_cur_varint(&mut cursor)? as i32 * block_size;
new_scene.player1.cond.set_interacted(false);
new_scene.player2.cond.set_interacted(false);
for player in [&mut game_scene.player1, &mut game_scene.player2].iter_mut() {
player.vel_x = 0;
player.vel_y = 0;