Ticket #3500: 3500 - Fix Unused Consts.diff
File 3500 - Fix Unused Consts.diff, 1.6 KB (added by , 9 years ago) |
---|
-
source/simulation2/components/CCmpPathfinder.cpp
37 37 #include "simulation2/helpers/Rasterize.h" 38 38 #include "simulation2/serialization/SerializeTemplates.h" 39 39 40 41 // Default cost to move a single tile is a fairly arbitrary number, which should be big42 // enough to be precise when multiplied/divided and small enough to never overflow when43 // summing the cost of a whole path.44 const int DEFAULT_MOVE_COST = 256;45 46 40 REGISTER_COMPONENT_TYPE(Pathfinder) 47 41 48 42 void CCmpPathfinder::Init(const CParamNode& UNUSED(paramNode)) -
source/simulation2/components/CCmpUnitMotion.cpp
51 51 static const entity_pos_t WAYPOINT_ADVANCE_MAX = entity_pos_t::FromInt(TERRAIN_TILE_SIZE*8); 52 52 53 53 /** 54 * When advancing along the long path, we'll pick a new waypoint to move55 * towards if we expect to reach the end of our current short path within56 * this many turns (assuming constant speed and turn length).57 * (This could typically be 1, but we need some tolerance in case speeds58 * or turn lengths change.)59 */60 static const int WAYPOINT_ADVANCE_LOOKAHEAD_TURNS = 4;61 62 /**63 54 * Maximum range to restrict short path queries to. (Larger ranges are slower, 64 55 * smaller ranges might miss some legitimate routes around large obstacles.) 65 56 */