/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
*
* path.c: Empire/A* Interface code.
* Define AS_STATS for A* statistics.
- *
+ *
* Known contributors to this file:
* Phil Lapsley, 1991
* Dave Pare, 1991
#include <config.h>
+#include <stdio.h>
#include "../as/as.h"
#include "file.h"
#include "misc.h"
#include "prototypes.h"
#include "sect.h"
#include "xy.h"
-#include <stdio.h>
#define BP_ASHASHSIZE 128 /* A* queue hash table size */
#define BP_NEIGHBORS 6 /* max number of neighbors */
move through it. We calculate it later. */
if (dchr[sp->sct_type].d_mob0 < 0)
continue;
- if (bp->bp_mobtype == MOB_RAIL
- && (!intrchr[INT_RAIL].in_enable || sp->sct_rail == 0))
+ if (bp->bp_mobtype == MOB_RAIL && !SCT_HAS_RAIL(sp))
continue;
if (sp->sct_own != from->sct_own)
continue;