mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Added GameInstance class
- available as global GAME - integrates LOCPLINT (CPlayerInterface) - integrates CGI->mh (CMapHandler) - integrates CSH (CServerHandler)
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "../CServerHandler.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../GameInstance.h"
|
||||
#include "../gui/MouseButton.h"
|
||||
#include "../gui/WindowHandler.h"
|
||||
#include "../widgets/CComponent.h"
|
||||
@@ -170,7 +171,7 @@ RandomMapTab::RandomMapTab():
|
||||
|
||||
void RandomMapTab::updateMapInfoByHost()
|
||||
{
|
||||
if(CSH->isGuest())
|
||||
if(GAME->server().isGuest())
|
||||
return;
|
||||
|
||||
// Generate header info
|
||||
|
||||
Reference in New Issue
Block a user