Skip to content

Commit 2a0f3c6

Browse files
authored
[GEN][ZH] Fix GEOMETRY_SPHERE & GEOMETRY_CYLINDER treated as GEOMETRY_BOX in PartitionData::calcMaxCoiForShape() (#1135)
1 parent d7bbe6b commit 2a0f3c6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Generals/Code/GameEngine/Source/GameLogic/Object/PartitionManager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2166,6 +2166,9 @@ Int PartitionData::calcMaxCoiForShape(GeometryType geom, Real majorRadius, Real
21662166
// this actually allocates a few too many, but that's ok.
21672167
Int cells = ThePartitionManager->worldToCellDist(majorRadius*2) + 1;
21682168
result = cells * cells;
2169+
#if !RETAIL_COMPATIBLE_CRC
2170+
break;
2171+
#endif
21692172
}
21702173
case GEOMETRY_BOX:
21712174
{

GeneralsMD/Code/GameEngine/Source/GameLogic/Object/PartitionManager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,6 +2173,9 @@ Int PartitionData::calcMaxCoiForShape(GeometryType geom, Real majorRadius, Real
21732173
// this actually allocates a few too many, but that's ok.
21742174
Int cells = ThePartitionManager->worldToCellDist(majorRadius*2) + 1;
21752175
result = cells * cells;
2176+
#if !RETAIL_COMPATIBLE_CRC
2177+
break;
2178+
#endif
21762179
}
21772180
case GEOMETRY_BOX:
21782181
{

0 commit comments

Comments
 (0)