1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Some code simplifications

1. `number_width` isn't used later
2. `return_type` is used only once
3. AudioServer::get_singleton()->get_channel_count() always returns a channel_count of 1 or larger
4. negative `aa->backward` conditional
5. `current_canvas` == `find_world_2d()->get_canvas()`
6. identical if `render_shadows`
This commit is contained in:
Markus Sauermann
2022-11-22 23:09:30 +01:00
parent 3f02cf7ced
commit 826e54fa73
6 changed files with 9 additions and 18 deletions

View File

@@ -1233,7 +1233,7 @@ void AnimationPlayer::_animation_update_transforms() {
if (aa->time < pasi.start) {
stop = true;
}
} else if (aa->backward) {
} else {
if (aa->time > pasi.start) {
stop = true;
}