summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-04 21:53:36 +0000
committersmatz <smatz@openttd.org>2008-05-04 21:53:36 +0000
commit297f99e100bcede36d54b8f833756c73d70fd4a0 (patch)
tree741c48c433316b11af1a790772deb3a4078fe47c /src/network
parent0b8b5d1f3b5f45374d1e43390777b2de51fb7728 (diff)
downloadopenttd-297f99e100bcede36d54b8f833756c73d70fd4a0.tar.xz
(svn r12944) -Codechange: use rev.h instead of externs at many places
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network.cpp2
-rw-r--r--src/network/network.h3
-rw-r--r--src/network/network_client.cpp2
3 files changed, 2 insertions, 5 deletions
diff --git a/src/network/network.cpp b/src/network/network.cpp
index 26009d749..a73337ae6 100644
--- a/src/network/network.cpp
+++ b/src/network/network.cpp
@@ -31,6 +31,7 @@
#include "../string_func.h"
#include "../player_func.h"
#include "../settings_type.h"
+#include "../rev.h"
#ifdef DEBUG_DUMP_COMMANDS
#include "../core/alloc_func.hpp"
#endif /* DEBUG_DUMP_COMMANDS */
@@ -1470,7 +1471,6 @@ void NetworkShutDown()
*/
bool IsNetworkCompatibleVersion(const char *other)
{
- extern const char _openttd_revision[];
return strncmp(_openttd_revision, other, NETWORK_REVISION_LENGTH - 1) == 0;
}
diff --git a/src/network/network.h b/src/network/network.h
index 3cedb9b6e..fbe2a31cc 100644
--- a/src/network/network.h
+++ b/src/network/network.h
@@ -31,9 +31,6 @@ static inline void NetworkShutDown() {}
#endif /* ENABLE_NETWORK */
-/** What is the revision of OpenTTD. */
-extern const char _openttd_revision[];
-
/** As which player do we play? */
extern PlayerID _network_playas;
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp
index abc5c6203..eb129ffe1 100644
--- a/src/network/network_client.cpp
+++ b/src/network/network_client.cpp
@@ -24,6 +24,7 @@
#include "../player_func.h"
#include "../player_base.h"
#include "../player_gui.h"
+#include "../rev.h"
#include "table/strings.h"
@@ -122,7 +123,6 @@ DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_JOIN)
// String: Unique id to find the player back in server-listing
//
- extern const char _openttd_revision[];
Packet *p;
_network_join_status = NETWORK_JOIN_STATUS_AUTHORIZING;
InvalidateWindow(WC_NETWORK_STATUS_WINDOW, 0);