Cleanup: remove commented out code

This commit is contained in:
Rubidium
2023-01-26 22:50:43 +01:00
committed by rubidium42
parent 5863d78cb4
commit 71b46db8d0
9 changed files with 2 additions and 26 deletions

View File

@@ -20,8 +20,6 @@
#include "../../tile_type.h"
#include "../../track_type.h"
//#define AYSTAR_DEBUG
/** Return status of #AyStar methods. */
enum AystarStatus {
AYSTAR_FOUND_END_NODE, ///< An end node was found.

View File

@@ -314,7 +314,6 @@ static Vehicle *CountShipProc(Vehicle *v, void *data)
static int32 NPFWaterPathCost(AyStar *as, AyStarNode *current, OpenListNode *parent)
{
/* TileIndex tile = current->tile; */
int32 cost = 0;
Trackdir trackdir = current->direction;
@@ -1114,7 +1113,6 @@ void InitializeNPF()
}
_npf_aystar.loops_per_tick = 0;
_npf_aystar.max_path_cost = 0;
//_npf_aystar.max_search_nodes = 0;
/* We will limit the number of nodes for now, until we have a better
* solution to really fix performance */
_npf_aystar.max_search_nodes = _settings_game.pf.npf.npf_max_search_nodes;