changeset 2676 | 59b65b4fb480 |
parent 2538 | 2e9c118c5e93 |
child 2817 | cdf488223c23 |
--- a/network_server.c Fri Nov 18 20:28:55 2005 +0000 +++ b/network_server.c Fri Nov 18 23:41:03 2005 +0000 @@ -5,6 +5,7 @@ #include "string.h" #include "strings.h" #include "network_data.h" +#include "train.h" #ifdef ENABLE_NETWORK @@ -1271,7 +1272,7 @@ if (v->owner < MAX_PLAYERS) switch (v->type) { case VEH_Train: - if (v->subtype == TS_Front_Engine) + if (IsFrontEngine(v)) _network_player_info[v->owner].num_vehicle[0]++; break; case VEH_Road: