1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

* restored objects functionalities (hopefully working)

* new file in vcmi lib: IGameCallback.cpp
This commit is contained in:
Michał W. Urbańczyk
2008-12-27 01:01:59 +00:00
parent d0d60175d7
commit 4a8ae4ed9a
19 changed files with 2316 additions and 2103 deletions

View File

@ -1076,6 +1076,8 @@ void CPlayerInterface::yourTurn()
adventureInt->infoBar.newDay(cb->getDate(1));
//select first hero if available.
//TODO: check if hero is slept
if(adventureInt->heroList.items.size())
adventureInt->select(adventureInt->heroList.items[0].first);
else
@ -1193,7 +1195,7 @@ void CPlayerInterface::heroMoved(const HeroMoveDetails & details)
if(adventureInt == curint)
adventureInt->minimap.draw();
if(details.style)
if(details.style>0)
return;
//initializing objects and performing first step of move