Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit b1a1a8e445d29bc2ea5b1ea8b36d93e80d8c656d 1 parent d969dd7
Cyp Cyp authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/research.cpp
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.