summaryrefslogtreecommitdiff
path: root/network.h
diff options
context:
space:
mode:
authorludde <ludde@openttd.org>2005-07-16 12:59:23 +0000
committerludde <ludde@openttd.org>2005-07-16 12:59:23 +0000
commit8ff1f8c5262c6804cd1a9ed57e94ddcce3fecc54 (patch)
treee17b5f56d14d21887e4a302f32c3469ab48bb91c /network.h
parentf12b3a0c1816dc5a8b95132b95025740f6c2b438 (diff)
downloadopenttd-8ff1f8c5262c6804cd1a9ed57e94ddcce3fecc54.tar.xz
(svn r2589) Fix: [network] Fixed static variable that wasn't initialized. Would stop the sync checking from working in some cases.
Diffstat (limited to 'network.h')
-rw-r--r--network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/network.h b/network.h
index 2aa213e51..46d4d349d 100644
--- a/network.h
+++ b/network.h
@@ -146,6 +146,8 @@ VARDEF char _network_unique_id[NETWORK_NAME_LENGTH]; // Our own unique ID
VARDEF uint32 _frame_counter_server; // The frame_counter of the server, if in network-mode
VARDEF uint32 _frame_counter_max; // To where we may go with our clients
+VARDEF uint32 _last_sync_frame; // Used in the server to store the last time a sync packet was sent to clients.
+
// networking settings
VARDEF uint32 _network_ip_list[MAX_INTERFACES + 1]; // Network IPs
VARDEF uint16 _network_game_count;