1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

* fixed initialization of map of players

* functions in callback for getting info about towns
* added info about towns to CGameState
* minor changes
This commit is contained in:
Michał W. Urbańczyk
2007-09-18 13:30:26 +00:00
parent b0e72f334e
commit 6d0bcef157
12 changed files with 186 additions and 56 deletions

View File

@@ -2,11 +2,13 @@
#include "CGameInterface.h"
#include "CAdvMapInterface.h"
#include "CMessage.h"
#include "mapHandler.h"
#include "SDL_Extensions.h"
#include "SDL_framerate.h"
#include "CScreenHandler.h"
#include "CCursorHandler.h"
#include "CCallback.h"
#include "SDL_Extensions.h"
using namespace CSDL_Ext;
class OCM_HLP_CGIN
{
@@ -730,6 +732,7 @@ void CPlayerInterface::heroMoved(const HeroMoveDetails & details)
delObjRect(hp.x, hp.y, hp.z, ho->id);
}
CGI->heroh->heroInstances[details.heroID]->pos = details.dst; //actualizing hero position
CGI->heroh->heroInstances[details.heroID]->ourObject->pos = details.dst; //copy of hero's position
ho->moveDir = 0; //move ended
//move finished
}