mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Add LeaveGame netpack and avoid replying on it and CloseServer
This commit is contained in:
@@ -65,6 +65,12 @@ bool CloseServer::applyGh( CGameHandler *gh )
|
||||
return true;
|
||||
}
|
||||
|
||||
bool LeaveGame::applyGh( CGameHandler *gh )
|
||||
{
|
||||
gh->playerLeftGame(c->connectionID);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool EndTurn::applyGh( CGameHandler *gh )
|
||||
{
|
||||
PlayerColor player = GS(gh)->currentPlayer;
|
||||
|
||||
Reference in New Issue
Block a user