mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-17 01:32:21 +02:00
Merge pull request #2524 from Nordsoft91/reward_canrefuse
[1.3.1] Reward can refuse fix
This commit is contained in:
@ -356,6 +356,9 @@ void CTownRewardableBuilding::heroLevelUpDone(const CGHeroInstance *hero) const
|
|||||||
|
|
||||||
void CTownRewardableBuilding::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer) const
|
void CTownRewardableBuilding::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answer) const
|
||||||
{
|
{
|
||||||
|
if(answer == 0)
|
||||||
|
return; // player refused
|
||||||
|
|
||||||
if(visitors.find(hero->id) != visitors.end())
|
if(visitors.find(hero->id) != visitors.end())
|
||||||
return; // query not for this building
|
return; // query not for this building
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user