fix: tidy namespace Scenes::/Info:: PascalCase i locals UPPER_CASE
This commit is contained in:
@@ -33,9 +33,9 @@ void Jg::setUpdateTicks(Uint32 milliseconds) {
|
||||
}
|
||||
|
||||
auto Jg::shouldUpdate() -> bool {
|
||||
const Uint32 now = SDL_GetTicks();
|
||||
if (now - update_time > update_ticks) {
|
||||
update_time = now;
|
||||
const Uint32 NOW = SDL_GetTicks();
|
||||
if (NOW - update_time > update_ticks) {
|
||||
update_time = NOW;
|
||||
cycle_counter++;
|
||||
return true;
|
||||
}
|
||||
@@ -50,8 +50,8 @@ auto Jg::getCycleCounter() -> Uint32 {
|
||||
}
|
||||
|
||||
auto Jg::getDeltaMs() -> Uint32 {
|
||||
const Uint32 now = SDL_GetTicks();
|
||||
const Uint32 delta = now - last_delta_time;
|
||||
last_delta_time = now;
|
||||
return delta;
|
||||
const Uint32 NOW = SDL_GetTicks();
|
||||
const Uint32 DELTA = NOW - last_delta_time;
|
||||
last_delta_time = NOW;
|
||||
return DELTA;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user