mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
Sight map: add enum with readable names to FoWChange netpack
This commit is contained in:
@ -1557,7 +1557,7 @@ void CGObservatory::onHeroVisit( const CGHeroInstance * h ) const
|
||||
|
||||
FoWChange fw;
|
||||
fw.player = h->tempOwner;
|
||||
fw.mode = 1;
|
||||
fw.mode = FoWChange::REVEALED;
|
||||
cb->getTilesInRange (fw.tiles, pos, 20, h->tempOwner, 1);
|
||||
cb->sendAndApply (&fw);
|
||||
break;
|
||||
@ -1884,7 +1884,7 @@ void CGMagi::onHeroVisit(const CGHeroInstance * h) const
|
||||
|
||||
FoWChange fw;
|
||||
fw.player = h->tempOwner;
|
||||
fw.mode = 1;
|
||||
fw.mode = FoWChange::REVEALED;
|
||||
fw.waitForDialogs = true;
|
||||
|
||||
for(auto it : eyelist[subID])
|
||||
@ -2051,7 +2051,7 @@ void CCartographer::blockingDialogAnswered(const CGHeroInstance *hero, ui32 answ
|
||||
{
|
||||
cb->giveResource (hero->tempOwner, Res::GOLD, -1000);
|
||||
FoWChange fw;
|
||||
fw.mode = 1;
|
||||
fw.mode = FoWChange::REVEALED;
|
||||
fw.player = hero->tempOwner;
|
||||
|
||||
//subIDs of different types of cartographers:
|
||||
|
Reference in New Issue
Block a user