X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FApplication.cpp;h=ac95ed0a26f69287d24f69518acd3ef001f4cdaf;hb=a01c2f05b5a6493d7fe097eb15e5337a095992ae;hp=c1e4f15311526ec5f767078d5faf30d5d9a72eb5;hpb=dafa7913073e730f352db1c2a76f55bbff39475c;p=l2e.git diff --git a/src/app/Application.cpp b/src/app/Application.cpp index c1e4f15..ac95ed0 100644 --- a/src/app/Application.cpp +++ b/src/app/Application.cpp @@ -121,7 +121,7 @@ void Application::Loop() { Uint32 now(SDL_GetTicks()); Uint32 deltaT(now - last); GlobalTimers().Update(deltaT); - if (deltaT > 34) deltaT = 34; + if (deltaT > 30) deltaT = 30; if (CurrentState()) { CurrentState()->GraphicsTimers().Update(deltaT); @@ -159,7 +159,7 @@ void Application::HandleEvents() { break; } } - CurrentState()->HandleEvents(input); + if (CurrentState()) CurrentState()->HandleEvents(input); } void Application::UpdateWorld(Uint32 deltaT) {