mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 16:52:45 +03:00
chore(console): prefer auto
This commit is contained in:
parent
a397de8619
commit
d6ee59ff7c
@ -95,10 +95,10 @@ void ConsoleScreenAnimate(float elapsedSec) {
|
||||
return;
|
||||
}
|
||||
|
||||
float currentPos = finalPos;
|
||||
auto currentPos = finalPos;
|
||||
|
||||
if (ConsoleGetResizeState() == CS_NONE) {
|
||||
float direction = s_rect.bottom <= finalPos ? 1.0f : -1.0f;
|
||||
auto direction = s_rect.bottom <= finalPos ? 1.0f : -1.0f;
|
||||
|
||||
currentPos = s_rect.bottom + direction * elapsedSec * 5.0f;
|
||||
currentPos = ConsoleGetActive() ? std::max(currentPos, finalPos) : std::min(currentPos, finalPos);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user