Remove: NO_DEBUG_MESSAGES was only read and setting it broke compilation (#6703)

Given any speed issue cannot be attributed to checking for _debug_NNN_level, removing this is a safe action

This fixes #6652.
This commit is contained in:
Patric Stout
2018-04-11 22:07:21 +02:00
committed by GitHub
parent 66f67ac5ac
commit 17bd580630
6 changed files with 23 additions and 42 deletions

View File

@@ -275,7 +275,6 @@ static uint NPFReservedTrackCost(AyStarNode *current)
*/
static void NPFMarkTile(TileIndex tile)
{
#ifndef NO_DEBUG_MESSAGES
if (_debug_npf_level < 1 || _networking) return;
switch (GetTileType(tile)) {
case MP_RAILWAY:
@@ -296,7 +295,6 @@ static void NPFMarkTile(TileIndex tile)
default:
break;
}
#endif
}
static int32 NPFWaterPathCost(AyStar *as, AyStarNode *current, OpenListNode *parent)