summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-03-08 16:27:54 +0000
committerrubidium <rubidium@openttd.org>2007-03-08 16:27:54 +0000
commitce919e8c719f0f698ac86dcaa528368316f2e52d (patch)
treee32a4dc6207efbaacc5af4e5c41a353b98b9a897 /src/network
parentaca3fb2b6ef69ae571b167d3071edd46d0ed383c (diff)
downloadopenttd-ce919e8c719f0f698ac86dcaa528368316f2e52d.tar.xz
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_server.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index 84a86e14c..110fb4bd6 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -1281,11 +1281,11 @@ void NetworkPopulateCompanyInfo()
if (!IsValidPlayer(v->owner)) continue;
switch (v->type) {
- case VEH_Train:
+ case VEH_TRAIN:
if (IsFrontEngine(v)) _network_player_info[v->owner].num_vehicle[0]++;
break;
- case VEH_Road:
+ case VEH_ROAD:
if (v->cargo_type != CT_PASSENGERS) {
_network_player_info[v->owner].num_vehicle[1]++;
} else {
@@ -1293,16 +1293,16 @@ void NetworkPopulateCompanyInfo()
}
break;
- case VEH_Aircraft:
+ case VEH_AIRCRAFT:
if (IsNormalAircraft(v)) _network_player_info[v->owner].num_vehicle[3]++;
break;
- case VEH_Ship:
+ case VEH_SHIP:
_network_player_info[v->owner].num_vehicle[4]++;
break;
- case VEH_Special:
- case VEH_Disaster:
+ case VEH_SPECIAL:
+ case VEH_DISASTER:
break;
}
}