mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Some progress on private rooms support
This commit is contained in:
@ -997,3 +997,13 @@ void CServerHandler::sendLobbyPack(const CPackForLobby & pack) const
|
||||
if(getState() != EClientState::STARTING)
|
||||
c->sendPack(&pack);
|
||||
}
|
||||
|
||||
bool CServerHandler::inLobbyRoom() const
|
||||
{
|
||||
return CSH->serverMode == EServerMode::LOBBY_HOST || CSH->serverMode == EServerMode::LOBBY_GUEST;
|
||||
}
|
||||
|
||||
bool CServerHandler::inGame() const
|
||||
{
|
||||
return c != nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user