# HG changeset patch # User glx # Date 1200691518 0 # Node ID 1e4244f977ba134f7cb2e6fe1c55336ddfdf7206 # Parent 056b4f562f884fc4a96c2a71f6d0263a2a95eeca (svn r11920) -Fix (r11844): train count was incorrect in network lobby window (and 'players' command) diff -r 056b4f562f88 -r 1e4244f977ba src/network/network_server.cpp --- a/src/network/network_server.cpp Fri Jan 18 21:08:40 2008 +0000 +++ b/src/network/network_server.cpp Fri Jan 18 21:25:18 2008 +0000 @@ -1301,7 +1301,7 @@ // Go through all vehicles and count the type of vehicles FOR_ALL_VEHICLES(v) { - if (!IsValidPlayer(v->owner)) continue; + if (!IsValidPlayer(v->owner) || !v->IsPrimaryVehicle()) continue; byte type = 0; switch (v->type) { case VEH_TRAIN: type = 0; break; @@ -1310,7 +1310,7 @@ case VEH_SHIP: type = 4; break; default: continue; } - if (IsEngineCountable(v)) _network_player_info[v->owner].num_vehicle[type]++; + _network_player_info[v->owner].num_vehicle[type]++; } // Go through all stations and count the types of stations