1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

CRewardableObject: remove now unused soundID

This commit is contained in:
Arseniy Shestakov
2017-09-13 03:29:50 +03:00
committed by DJWarmonger
parent f15cadc87b
commit c5ca75bc53
3 changed files with 5 additions and 9 deletions

View File

@ -102,7 +102,6 @@ void CRewardableObject::onHeroVisit(const CGHeroInstance *h) const
{
InfoWindow iw;
iw.player = h->tempOwner;
iw.soundID = soundID;
iw.text = vi.message;
vi.reward.loadComponents(iw.components, h);
cb->showInfoDialog(&iw);
@ -114,7 +113,6 @@ void CRewardableObject::onHeroVisit(const CGHeroInstance *h) const
{
BlockingDialog sd(canRefuse, rewards.size() > 1);
sd.player = h->tempOwner;
sd.soundID = soundID;
sd.text = onSelect;
for (auto index : rewards)
sd.components.push_back(getVisitInfo(index, h).reward.getDisplayedComponent(h));
@ -138,7 +136,6 @@ void CRewardableObject::onHeroVisit(const CGHeroInstance *h) const
{
InfoWindow iw;
iw.player = h->tempOwner;
iw.soundID = soundID;
if (!onEmpty.toString().empty())
iw.text = onEmpty;
else
@ -182,7 +179,6 @@ void CRewardableObject::onHeroVisit(const CGHeroInstance *h) const
logGlobal->debug("Revisiting already visited object");
InfoWindow iw;
iw.player = h->tempOwner;
iw.soundID = soundID;
if (!onVisited.toString().empty())
iw.text = onVisited;
else
@ -451,7 +447,6 @@ void CRewardableObject::newTurn(CRandomGenerator & rand) const
}
CRewardableObject::CRewardableObject():
soundID(soundBase::invalid),
selectMode(0),
visitMode(0),
selectedReward(0),