|
From: | Kyle Lutze |
Subject: | [glob2-devel] quiting (esc vs. cmd+q and alt+f4) |
Date: | Fri, 08 Feb 2008 19:09:12 -0800 |
User-agent: | Thunderbird 2.0.0.9 (Macintosh/20071031) |
Discuss! Also, anyone know where in the code esc causes the game to quit? in my local copy of glob2 I put Uint8 *keystate = SDL_GetKeyState(NULL); SDLMod modState = SDL_GetModState(); if ((modState & KMOD_META) && keystate[SDLK_q]) { exitGlobCompletely=true;orderQueue.push_back(shared_ptr<Order>(new PlayerQuitsGameOrder(localPlayer)));
}at around line 1025 in GameGUI.cpp, but it only works while playing a game which obviously isn't the desired effect and Bradley doesn't know where to put it either.
[Prev in Thread] | Current Thread | [Next in Thread] |