diff options
author | rubidium <rubidium@openttd.org> | 2010-06-19 16:37:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-06-19 16:37:56 +0000 |
commit | 99a11badaf80f6f3a7ddaec74ca7fad712b28957 (patch) | |
tree | 699bca4bc13a2575e1e1e5277a2d7b2df2181b14 /src/network/network_gui.cpp | |
parent | 5623710593ee9459c7c3faf2da3be92e7e7263f8 (diff) | |
download | openttd-99a11badaf80f6f3a7ddaec74ca7fad712b28957.tar.xz |
(svn r19996) -Codechange: Add NetworkVehicleType enum.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index f2c70f1eb..db071c28e 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1603,15 +1603,19 @@ struct NetworkLobbyWindow : public Window { DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, STR_NETWORK_GAME_LOBBY_PERFORMANCE); // performance y += FONT_HEIGHT_NORMAL; - for (uint i = 0; i < lengthof(this->company_info[this->company].num_vehicle); i++) { - SetDParam(i, this->company_info[this->company].num_vehicle[i]); - } + SetDParam(0, this->company_info[this->company].num_vehicle[NETWORK_VEH_TRAIN]); + SetDParam(1, this->company_info[this->company].num_vehicle[NETWORK_VEH_LORRY]); + SetDParam(2, this->company_info[this->company].num_vehicle[NETWORK_VEH_BUS]); + SetDParam(3, this->company_info[this->company].num_vehicle[NETWORK_VEH_PLANE]); + SetDParam(4, this->company_info[this->company].num_vehicle[NETWORK_VEH_SHIP]); DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, STR_NETWORK_GAME_LOBBY_VEHICLES); // vehicles y += FONT_HEIGHT_NORMAL; - for (uint i = 0; i < lengthof(this->company_info[this->company].num_station); i++) { - SetDParam(i, this->company_info[this->company].num_station[i]); - } + SetDParam(0, this->company_info[this->company].num_station[NETWORK_VEH_TRAIN]); + SetDParam(1, this->company_info[this->company].num_station[NETWORK_VEH_LORRY]); + SetDParam(2, this->company_info[this->company].num_station[NETWORK_VEH_BUS]); + SetDParam(3, this->company_info[this->company].num_station[NETWORK_VEH_PLANE]); + SetDParam(4, this->company_info[this->company].num_station[NETWORK_VEH_SHIP]); DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, STR_NETWORK_GAME_LOBBY_STATIONS); // stations y += FONT_HEIGHT_NORMAL; |