mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Removed unused STOP_CLIENT SDL event
This commit is contained in:
parent
4bc27194dd
commit
1c9dd41188
@ -1150,9 +1150,6 @@ static void handleEvent(SDL_Event & ev)
|
||||
GH.defActionsDef = 63;
|
||||
}
|
||||
break;
|
||||
case STOP_CLIENT:
|
||||
client->endGame(false);
|
||||
break;
|
||||
case RESTART_GAME:
|
||||
{
|
||||
StartInfo si = *client->getStartInfo(true);
|
||||
|
@ -2463,11 +2463,6 @@ void CPlayerInterface::requestReturningToMainMenu()
|
||||
cb->unregisterAllInterfaces();
|
||||
}
|
||||
|
||||
void CPlayerInterface::requestStoppingClient()
|
||||
{
|
||||
sendCustomEvent(STOP_CLIENT);
|
||||
}
|
||||
|
||||
void CPlayerInterface::sendCustomEvent( int code )
|
||||
{
|
||||
CGuiHandler::pushSDLEvent(SDL_USEREVENT, code);
|
||||
|
@ -74,8 +74,8 @@ enum
|
||||
{
|
||||
/*CHANGE_SCREEN_RESOLUTION = 1,*/
|
||||
RETURN_TO_MAIN_MENU = 2,
|
||||
STOP_CLIENT = 3,
|
||||
RESTART_GAME,
|
||||
//STOP_CLIENT = 3,
|
||||
RESTART_GAME = 4,
|
||||
RETURN_TO_MENU_LOAD,
|
||||
FULLSCREEN_TOGGLED,
|
||||
PREPARE_RESTART_CAMPAIGN,
|
||||
@ -260,7 +260,6 @@ public:
|
||||
void tryDiggging(const CGHeroInstance *h);
|
||||
void showShipyardDialogOrProblemPopup(const IShipyard *obj); //obj may be town or shipyard;
|
||||
void requestReturningToMainMenu();
|
||||
void requestStoppingClient();
|
||||
void sendCustomEvent(int code);
|
||||
void proposeLoadingGame();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user