Skip to content

Commit

Permalink
Update visible tiles immediately when researching sensor upgrades.
Browse files Browse the repository at this point in the history
Droids would previously not see new tiles until moving after an upgrade.
Structures would previously not see new tiles until being partially demolished/rebuilt after an upgrade.

Fixes ticket:3450.
  • Loading branch information
Cyp committed Oct 4, 2012
1 parent d969dd7 commit b1a1a8e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/research.cpp
Expand Up @@ -959,6 +959,7 @@ void researchResult(UDWORD researchIndex, UBYTE player, bool bDisplay, STRUCTURE
for (psCurr = apsStructLists[player]; psCurr != NULL; psCurr = psCurr->psNext)
{
structureSensorUpgrade(psCurr);
visTilesUpdate(psCurr);
}
for (psCurr = mission.apsStructLists[player]; psCurr != NULL; psCurr = psCurr->psNext)
{
Expand All @@ -968,6 +969,7 @@ void researchResult(UDWORD researchIndex, UBYTE player, bool bDisplay, STRUCTURE
for (psDroid = apsDroidLists[player]; psDroid != NULL; psDroid = psDroid->psNext)
{
droidSensorUpgrade(psDroid);
visTilesUpdate(psDroid);
if (psDroid->droidType == DROID_TRANSPORTER || psDroid->droidType == DROID_SUPERTRANSPORTER)
{
upgradeTransporterDroids(psDroid, droidSensorUpgrade);
Expand Down

0 comments on commit b1a1a8e

Please sign in to comment.