Permalink
Browse files

Update visible tiles immediately when researching sensor upgrades.

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 b1a1a8e445d29bc2ea5b1ea8b36d93e80d8c656d
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/research.cpp
View
@@ -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)
{
@@ -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);

0 comments on commit b1a1a8e

Please sign in to comment.