|
|
@ -107,9 +107,11 @@ namespace SemiColinGames { |
|
|
|
} |
|
|
|
|
|
|
|
if (!paused) { |
|
|
|
float modelTime = (float) gameTime.ElapsedGameTime.TotalSeconds; |
|
|
|
double modelTime = gameTime.ElapsedGameTime.TotalSeconds; |
|
|
|
// To prevent huge diffs, never update by more than 4 frames' worth of time.
|
|
|
|
modelTime = Math.Min(modelTime, TARGET_FRAME_TIME * 4.0f); |
|
|
|
Clock.AddModelTime(modelTime); |
|
|
|
world.Update(modelTime, input); |
|
|
|
world.Update((float) modelTime, input); |
|
|
|
} |
|
|
|
|
|
|
|
base.Update(gameTime); |
|
|
|