Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored October 04, 2012

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  src/research.cpp
2  src/research.cpp
@@ -959,6 +959,7 @@ void researchResult(UDWORD researchIndex, UBYTE player, bool bDisplay, STRUCTURE
959 959
 				for (psCurr = apsStructLists[player]; psCurr != NULL; psCurr = psCurr->psNext)
960 960
 				{
961 961
 					structureSensorUpgrade(psCurr);
  962
+					visTilesUpdate(psCurr);
962 963
 				}
963 964
 				for (psCurr = mission.apsStructLists[player]; psCurr != NULL; psCurr = psCurr->psNext)
964 965
 				{
@@ -968,6 +969,7 @@ void researchResult(UDWORD researchIndex, UBYTE player, bool bDisplay, STRUCTURE
968 969
 				for (psDroid = apsDroidLists[player]; psDroid != NULL; psDroid = psDroid->psNext)
969 970
 				{
970 971
 					droidSensorUpgrade(psDroid);
  972
+					visTilesUpdate(psDroid);
971 973
 					if (psDroid->droidType == DROID_TRANSPORTER || psDroid->droidType == DROID_SUPERTRANSPORTER)
972 974
 					{
973 975
 						upgradeTransporterDroids(psDroid, droidSensorUpgrade);

0 notes on commit b1a1a8e

Please sign in to comment.
Something went wrong with that request. Please try again.