update on_physics_update & update standard components
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ Clock::Clock(int tickRate, int tickParts)
|
||||
|
||||
bool Clock::update(float delta) {
|
||||
tickTimer += delta;
|
||||
float delay = 1.0f / float(tickRate);
|
||||
float delay = 1.0f / static_cast<float>(tickRate);
|
||||
if (tickTimer > delay || tickPartsUndone) {
|
||||
if (tickPartsUndone) {
|
||||
tickPartsUndone--;
|
||||
|
||||
Reference in New Issue
Block a user