MCPcopy Create free account
hub / github.com/Warzone2100/warzone2100 / structHeightScale

Function structHeightScale

src/structure.cpp:6628–6631  ·  view source on GitHub ↗

Used for determining how much of the structure to draw as being built or demolished*/

Source from the content-addressed store, hash-verified

6626
6627/*Used for determining how much of the structure to draw as being built or demolished*/
6628float structHeightScale(const STRUCTURE *psStruct)
6629{
6630 return MAX(structureCompletionProgress(*psStruct), 0.05f);
6631}
6632
6633
6634/*compares the structure sensor type with the droid weapon type to see if the

Callers 4

structureUpdateFunction · 0.85
renderStructureFunction · 0.85
renderWallSectionFunction · 0.85
addConstructionLineFunction · 0.85

Calls 1

Tested by

no test coverage detected