Update update return statements

This commit is contained in:
AdamWhitehurst 2020-01-12 15:14:08 -08:00
parent 1816d4b805
commit 71a39c3677
15 changed files with 17 additions and 17 deletions

View File

@ -49,6 +49,6 @@ impl StateHandler for State {
.unwrap_or_default(),
})));
return update;
update
}
}

View File

@ -43,6 +43,6 @@ impl StateHandler for State {
return update;
}
return update;
update
}
}

View File

@ -84,6 +84,6 @@ impl StateHandler for State {
.unwrap_or_default(),
})));
return update;
update
}
}

View File

@ -98,6 +98,6 @@ impl StateHandler for State {
}
}
return update;
update
}
}

View File

@ -64,6 +64,6 @@ impl StateHandler for State {
update.character.move_state =
determine_move_from_grounded_state(ecs_data.physics, ecs_data.inputs);
return update;
update
}
}

View File

@ -77,6 +77,6 @@ impl StateHandler for State {
}
// Otherwise keep gliding
return update;
update
}
}

View File

@ -30,6 +30,6 @@ impl StateHandler for State {
// else unarmed stuff?
}
return update;
update
}
}

View File

@ -24,6 +24,6 @@ impl StateHandler for State {
// Immediately go to falling state after jump impulse
update.character.move_state = MoveState::Fall(None);
return update;
update
}
}

View File

@ -69,14 +69,14 @@ use crate::comp::{
/// // Try to jump
/// if state_utils::can_jump(ecs_data.physics, ecs_data.inputs) {
/// update.character.move_state = Jump(None);
/// return update;
/// update
/// }
///
/// // Update based on groundedness
/// update.character.move_state =
/// state_utils::determine_move_from_grounded_state(ecs_data.physics, ecs_data.inputs);
///
/// return update;
/// update
/// }
/// }
/// ```

View File

@ -64,6 +64,6 @@ impl StateHandler for State {
})));
// Keep rolling
return update;
update
}
}

View File

@ -75,6 +75,6 @@ impl StateHandler for State {
update.character.move_state =
determine_move_from_grounded_state(ecs_data.physics, ecs_data.inputs);
return update;
update
}
}

View File

@ -49,6 +49,6 @@ impl StateHandler for State {
}
// No move has occurred, keep sitting
return update;
update
}
}

View File

@ -46,6 +46,6 @@ impl StateHandler for State {
update.character.move_state =
determine_move_from_grounded_state(ecs_data.physics, ecs_data.inputs);
return update;
update
}
}

View File

@ -65,7 +65,7 @@ impl StateHandler for State {
// Not on ground
if !ecs_data.physics.on_ground {
update.character.move_state = MoveState::Swim(None);
return update;
update
}
// On ground
else {
@ -76,7 +76,7 @@ impl StateHandler for State {
MoveState::Stand(None)
};
return update;
update
}
}
}

View File

@ -61,6 +61,6 @@ impl StateHandler for State {
}));
}
return update;
update
}
}