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

* first part of end of battle window

* fixed heap corruption while exiting battle
This commit is contained in:
mateuszb
2008-09-05 16:08:25 +00:00
parent 6633fb86ef
commit 2af92aa170
6 changed files with 171 additions and 10 deletions

View File

@ -2008,8 +2008,13 @@ BattleAction CPlayerInterface::activeStack(int stackID) //called when it's turn
void CPlayerInterface::battleEnd(BattleResult *br)
{
boost::unique_lock<boost::mutex> un(*pim);
curint->deactivate();
((CBattleInterface*)curint)->battleFinished(*br);
}
void CPlayerInterface::battleResultQuited()
{
//boost::unique_lock<boost::mutex> un(*pim);
((CBattleInterface*)curint)->resWindow->deactivate();
objsToBlit -= curint;
delete curint;
curint = adventureInt;