1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

* mostly done Events objects handling

* some moving hero code improvements
* fixed Blacksmith
* minor changes
This commit is contained in:
Michał W. Urbańczyk
2009-04-20 22:57:07 +00:00
parent 408411d8c3
commit c8b6858716
14 changed files with 460 additions and 170 deletions

View File

@ -409,8 +409,6 @@ askInterfaceForMove:
//end battle, remove all info, free memory
giveExp(*battleResult.data);
sendAndApply(battleResult.data);
if(cb)
cb(battleResult.data);
//if one hero has lost we will erase him
if(battleResult.data->winner!=0 && hero1)
@ -430,6 +428,9 @@ askInterfaceForMove:
if(battleResult.data->exp[1] && hero2)
changePrimSkill(hero2->id,4,battleResult.data->exp[1]);
if(cb)
cb(battleResult.data);
delete battleResult.data;
}