Make all Ships constanly flying, not only rtsim

This commit is contained in:
juliancoffee 2021-07-14 22:04:42 +03:00
parent d42c7be141
commit aae3a159b8

View File

@ -273,7 +273,7 @@ impl<'a> System<'a> for Sys {
// (can be overridden below)
//
// This definetly breaks LeapMelee and
// probably not only that, do we really need this?
// probably not only that, do we really need this at all?
controller.reset();
controller.inputs.look_dir = ori.look_dir();
}
@ -322,12 +322,12 @@ impl<'a> System<'a> for Sys {
.get(entity)
.and_then(|rtsim_ent| rtsim.get_entity(rtsim_ent.0));
if traversal_config.can_fly
&& rtsim_entity.is_some()
&& matches!(body, Some(Body::Ship(_)))
{
// hack (kinda): Never turn off flight for rtsim airships
if traversal_config.can_fly && matches!(body, Some(Body::Ship(_))) {
// hack (kinda): Never turn off flight airships
// since it results in stuttering and falling back to the ground.
//
// TODO: look into `controller.reset()` line above
// and see if it fixes it
controller
.actions
.push(ControlAction::basic_input(InputKind::Fly));