1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 03:12:36 +01:00

Make debug keys use gameOffsetTime method

This commit is contained in:
Timmy Sjöstedt 2016-08-10 17:24:03 +02:00
parent 03d27a0e80
commit d823a97308

View File

@ -777,10 +777,10 @@ void RWGame::globalKeyEvent(const SDL_Event& event)
{
switch (event.key.keysym.sym) {
case SDLK_LEFTBRACKET:
state->basic.gameMinute -= 30.f;
world->offsetGameTime(-30);
break;
case SDLK_RIGHTBRACKET:
state->basic.gameMinute += 30.f;
world->offsetGameTime(30);
break;
case SDLK_9:
timescale *= 0.5f;