Should not require pointers for its own self in Crawler class' update loop.
This commit is contained in:
parent
773f72a45c
commit
ce1a2adf81
@ -121,9 +121,9 @@ bool Crawler::OnUserUpdate(float fElapsedTime){
|
||||
fElapsedTime=std::clamp(fElapsedTime,0.f,1/30.f); //HACK fix. We can't have a negative time. Although using a more precise system clock should make this never occur. Also make sure if the game is too slow we advance by only 1/30th of a second.
|
||||
levelTime+=fElapsedTime;
|
||||
GameState::STATE->OnUserUpdate(this);
|
||||
game->RenderWorld(game->GetElapsedTime());
|
||||
game->RenderHud();
|
||||
game->RenderMenu();
|
||||
RenderWorld(GetElapsedTime());
|
||||
RenderHud();
|
||||
RenderMenu();
|
||||
GameState::STATE->Draw(this);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user