mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Added GameInstance class
- available as global GAME - integrates LOCPLINT (CPlayerInterface) - integrates CGI->mh (CMapHandler) - integrates CSH (CServerHandler)
This commit is contained in:
@ -20,6 +20,7 @@
|
||||
#include "../CPlayerInterface.h"
|
||||
#include "../adventureMap/AdventureMapInterface.h"
|
||||
#include "../GameEngine.h"
|
||||
#include "../GameInstance.h"
|
||||
#include "../render/CAnimation.h"
|
||||
#include "../render/Canvas.h"
|
||||
#include "../render/IImage.h"
|
||||
@ -113,7 +114,7 @@ MapView::MapView(const Point & offset, const Point & dimensions)
|
||||
|
||||
void MapView::onMapLevelSwitched()
|
||||
{
|
||||
if(LOCPLINT->cb->getMapSize().z > 1)
|
||||
if(GAME->interface()->cb->getMapSize().z > 1)
|
||||
{
|
||||
if(model->getLevel() == 0)
|
||||
controller->setViewCenter(model->getMapViewCenter(), 1);
|
||||
|
Reference in New Issue
Block a user