Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 Cyp authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 src/display.cpp
12 src/display.cpp
View
@@ -2607,17 +2607,9 @@ STRUCTURE *psStructure;
}
// If this building is a factory/power generator/research facility
// which isn't upgraded. Make the build icon available.
- else if(((psStructure->pStructureType->type == REF_FACTORY
- || psStructure->pStructureType->type == REF_VTOL_FACTORY)
- && psStructure->pFunctionality->factory.capacity < NUM_FACTORY_MODULES)
-
- || (psStructure->pStructureType->type == REF_POWER_GEN
- && psStructure->pFunctionality->powerGenerator.capacity < NUM_POWER_MODULES)
-
- || (psStructure->pStructureType->type == REF_RESEARCH
- && psStructure->pFunctionality->researchFacility.capacity < NUM_RESEARCH_MODULES))
+ else if (nextModuleToBuild(psStructure, -1) > 0)
{
- retVal = MT_OWNSTRINCOMP;
+ retVal = MT_OWNSTRINCOMP;
}
else
{
Please sign in to comment.
Something went wrong with that request. Please try again.