Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Only show build cursor over structures for building modules which hav…

…e been researched.

Fixes ticket:3327.
  • Loading branch information...
commit 4f85a5eaa12ea88d7055e3430577d7dec9391a05 1 parent 831d22c
Cyp authored

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

  1. 12  src/display.cpp
12  src/display.cpp
@@ -2607,17 +2607,9 @@ STRUCTURE	*psStructure;
2607 2607
 				}
2608 2608
 				// If this building is a factory/power generator/research facility
2609 2609
 				// which isn't upgraded. Make the build icon available.
2610  
-				else if(((psStructure->pStructureType->type == REF_FACTORY
2611  
-				       || psStructure->pStructureType->type == REF_VTOL_FACTORY)
2612  
-				      && psStructure->pFunctionality->factory.capacity < NUM_FACTORY_MODULES)
2613  
-
2614  
-				     || (psStructure->pStructureType->type  == REF_POWER_GEN
2615  
-				      && psStructure->pFunctionality->powerGenerator.capacity < NUM_POWER_MODULES)
2616  
-
2617  
-				     || (psStructure->pStructureType->type  == REF_RESEARCH
2618  
-				      && psStructure->pFunctionality->researchFacility.capacity < NUM_RESEARCH_MODULES))
  2610
+				else if (nextModuleToBuild(psStructure, -1) > 0)
2619 2611
 				{
2620  
-						retVal = MT_OWNSTRINCOMP;
  2612
+					retVal = MT_OWNSTRINCOMP;
2621 2613
 				}
2622 2614
 				else
2623 2615
 				{

0 notes on commit 4f85a5e

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