1
0
Fork 0

(svn r17977) -Fix: Busses and trucks are distinguished by cargo class.

release/1.0
frosch 2009-11-05 20:26:13 +00:00
parent 79627b4f89
commit b012a75c47
1 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@
#include "../company_gui.h"
#include "../window_func.h"
#include "../openttd.h"
#include "../cargotype.h"
#include "table/strings.h"
@ -1380,7 +1381,7 @@ void NetworkPopulateCompanyStats(NetworkCompanyStats *stats)
byte type = 0;
switch (v->type) {
case VEH_TRAIN: type = 0; break;
case VEH_ROAD: type = (v->cargo_type != CT_PASSENGERS) ? 1 : 2; break;
case VEH_ROAD: type = IsCargoInClass(v->cargo_type, CC_PASSENGERS) ? 2 : 1; break;
case VEH_AIRCRAFT: type = 3; break;
case VEH_SHIP: type = 4; break;
default: continue;