diff options
author | rubidium <rubidium@openttd.org> | 2009-01-16 12:59:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-16 12:59:47 +0000 |
commit | eff693d2e9b45a02177ee600e43576e6d733a2bd (patch) | |
tree | eef2f6bd0f7e1c471cd04882c93477dbfe6df764 /src/network/network_gui.cpp | |
parent | 5d585dcb4d34277be445f7cad6672afb96113d47 (diff) | |
download | openttd-eff693d2e9b45a02177ee600e43576e6d733a2bd.tar.xz |
(svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r-- | src/network/network_gui.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 60d63083d..e130b7770 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -1765,8 +1765,8 @@ void ShowNetworkNeedPassword(NetworkPasswordType npt) // Vars needed for the join-GUI NetworkJoinStatus _network_join_status; uint8 _network_join_waiting; -uint16 _network_join_kbytes; -uint16 _network_join_kbytes_total; +uint32 _network_join_bytes; +uint32 _network_join_bytes_total; struct NetworkJoinStatusWindow : Window { NetworkJoinStatusWindow(const WindowDesc *desc) : Window(desc) @@ -1791,12 +1791,12 @@ struct NetworkJoinStatusWindow : Window { progress = 15; // third stage is 15% break; case NETWORK_JOIN_STATUS_DOWNLOADING: - SetDParam(0, _network_join_kbytes); - SetDParam(1, _network_join_kbytes_total); + SetDParam(0, _network_join_bytes); + SetDParam(1, _network_join_bytes_total); DrawStringCentered(125, 46, STR_NETWORK_CONNECTING_DOWNLOADING, TC_GREY); /* Fallthrough */ default: /* Waiting is 15%, so the resting receivement of map is maximum 70% */ - progress = 15 + _network_join_kbytes * (100 - 15) / _network_join_kbytes_total; + progress = 15 + _network_join_bytes * (100 - 15) / _network_join_bytes_total; } /* Draw nice progress bar :) */ |