修复机器人散弹枪弹道问题
This commit is contained in:
parent
2bd65f7d38
commit
6c679ad4de
@ -312,8 +312,8 @@ void Human::Shot(a8::Vec2& target_dir)
|
||||
}
|
||||
}
|
||||
bullet_dir.Rotate(bullet_angle / 180.0f);
|
||||
room->frame_event.AddBullet(this, bullet_born_pos, attack_dir, fly_distance);
|
||||
room->CreateBullet(this, curr_weapon, bullet_born_pos, attack_dir, fly_distance);
|
||||
room->frame_event.AddBullet(this, bullet_born_pos, bullet_dir, fly_distance);
|
||||
room->CreateBullet(this, curr_weapon, bullet_born_pos, bullet_dir, fly_distance);
|
||||
}
|
||||
--curr_weapon->ammo;
|
||||
int slot_id = curr_weapon->meta->i->_inventory_slot();
|
||||
|
Loading…
x
Reference in New Issue
Block a user