1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

* refactoring

* fixed bug 1143
* some work on campaigns
This commit is contained in:
mateuszb
2013-02-05 18:48:46 +00:00
parent f8d7473f9a
commit bda92a4a73
7 changed files with 14 additions and 25 deletions

View File

@@ -3583,7 +3583,8 @@ void CBonusSelection::selectBonus( int id )
{
// Total redraw is needed because the border around the bonus images
// have to be undrawn/drawn.
if (id != sInfo.campState->currentBonusID())
if (!vstd::contains(sInfo.campState->chosenCampaignBonuses, sInfo.campState->currentMap)
|| id != sInfo.campState->currentBonusID())
{
sInfo.campState->chosenCampaignBonuses[sInfo.campState->currentMap] = id;
GH.totalRedraw();