Ticket #3500: 3500 - Fix Unused Consts.diff

File 3500 - Fix Unused Consts.diff, 1.6 KB (added by Stan, 9 years ago)

Remove the two unused consts.

  • source/simulation2/components/CCmpPathfinder.cpp

     
    3737#include "simulation2/helpers/Rasterize.h"
    3838#include "simulation2/serialization/SerializeTemplates.h"
    3939
    40 
    41 // Default cost to move a single tile is a fairly arbitrary number, which should be big
    42 // enough to be precise when multiplied/divided and small enough to never overflow when
    43 // summing the cost of a whole path.
    44 const int DEFAULT_MOVE_COST = 256;
    45 
    4640REGISTER_COMPONENT_TYPE(Pathfinder)
    4741
    4842void CCmpPathfinder::Init(const CParamNode& UNUSED(paramNode))
  • source/simulation2/components/CCmpUnitMotion.cpp

     
    5151static const entity_pos_t WAYPOINT_ADVANCE_MAX = entity_pos_t::FromInt(TERRAIN_TILE_SIZE*8);
    5252
    5353/**
    54  * When advancing along the long path, we'll pick a new waypoint to move
    55  * towards if we expect to reach the end of our current short path within
    56  * this many turns (assuming constant speed and turn length).
    57  * (This could typically be 1, but we need some tolerance in case speeds
    58  * or turn lengths change.)
    59  */
    60 static const int WAYPOINT_ADVANCE_LOOKAHEAD_TURNS = 4;
    61 
    62 /**
    6354 * Maximum range to restrict short path queries to. (Larger ranges are slower,
    6455 * smaller ranges might miss some legitimate routes around large obstacles.)
    6556 */