mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
[Refactoring] Unified SetResources NetPack API.
This commit is contained in:
@@ -507,11 +507,11 @@ void CPlayerInterface::heroMovePointsChanged(const CGHeroInstance * hero)
|
||||
if (makingTurn && hero->tempOwner == playerID)
|
||||
adventureInt->heroList.update(hero);
|
||||
}
|
||||
void CPlayerInterface::receivedResource(int type, int val)
|
||||
void CPlayerInterface::receivedResource()
|
||||
{
|
||||
EVENT_HANDLER_CALLED_BY_CLIENT;
|
||||
if (CMarketplaceWindow *mw = dynamic_cast<CMarketplaceWindow *>(GH.topInt()))
|
||||
mw->resourceChanged(type, val);
|
||||
mw->resourceChanged();
|
||||
|
||||
GH.totalRedraw();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user