Skip to content

Commit 7a9254d

Browse files
Maullerxezon
authored andcommitted
unify(pathfinder): Remove unused argument from PathfindZoneManager::markZonesDirty() (TheSuperHackers#2381)
1 parent 263c6a0 commit 7a9254d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

GeneralsMD/Code/GameEngine/Include/GameLogic/AIPathfind.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ class PathfindZoneManager
540540
void reset();
541541

542542
Bool needToCalculateZones() const {return m_nextFrameToCalculateZones <= TheGameLogic->getFrame() ;} ///< Returns true if the zones need to be recalculated.
543-
void markZonesDirty( Bool insert ) ; ///< Called when the zones need to be recalculated.
543+
void markZonesDirty() ; ///< Called when the zones need to be recalculated.
544544
void updateZonesForModify( PathfindCell **map, PathfindLayer layers[], const IRegion2D &structureBounds, const IRegion2D &globalBounds ) ; ///< Called to recalculate an area when a structure has been removed.
545545
void calculateZones( PathfindCell **map, PathfindLayer layers[], const IRegion2D &bounds); ///< Does zone calculations.
546546
zoneStorageType getEffectiveZone(LocomotorSurfaceTypeMask acceptableSurfaces, Bool crusher, zoneStorageType zone) const;

GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,7 +2516,7 @@ void PathfindZoneManager::reset() ///< Called when the map is reset.
25162516
}
25172517

25182518

2519-
void PathfindZoneManager::markZonesDirty( Bool insert ) ///< Called when the zones need to be recalculated.
2519+
void PathfindZoneManager::markZonesDirty() ///< Called when the zones need to be recalculated.
25202520
{
25212521

25222522
if (TheGameLogic->getFrame()<2) {
@@ -4059,7 +4059,7 @@ void Pathfinder::classifyFence( Object *obj, Bool insert )
40594059
}
40604060
}
40614061
if (didAnything) {
4062-
m_zoneManager.markZonesDirty( insert );
4062+
m_zoneManager.markZonesDirty();
40634063
m_zoneManager.updateZonesForModify(m_map, m_layers, cellBounds, m_extent);
40644064
}
40654065
}
@@ -4163,7 +4163,7 @@ void Pathfinder::internal_classifyObjectFootprint( Object *obj, Bool insert )
41634163
{
41644164
case GEOMETRY_BOX:
41654165
{
4166-
m_zoneManager.markZonesDirty( insert );
4166+
m_zoneManager.markZonesDirty();
41674167

41684168
Real angle = obj->getOrientation();
41694169

@@ -4222,7 +4222,7 @@ void Pathfinder::internal_classifyObjectFootprint( Object *obj, Bool insert )
42224222
case GEOMETRY_SPHERE: // not quite right, but close enough
42234223
case GEOMETRY_CYLINDER:
42244224
{
4225-
m_zoneManager.markZonesDirty( insert );
4225+
m_zoneManager.markZonesDirty();
42264226
// fill in all cells that overlap as obstacle cells
42274227
/// @todo This is a very inefficient circle-rasterizer
42284228
ICoord2D topLeft, bottomRight;
@@ -9485,7 +9485,7 @@ void Pathfinder::changeBridgeState( PathfindLayerEnum layer, Bool repaired)
94859485
{
94869486
if (m_layers[layer].isUnused()) return;
94879487
if (m_layers[layer].setDestroyed(!repaired)) {
9488-
m_zoneManager.markZonesDirty( repaired );
9488+
m_zoneManager.markZonesDirty();
94899489
}
94909490
}
94919491

0 commit comments

Comments
 (0)