summaryrefslogtreecommitdiff
path: root/variables.h
diff options
context:
space:
mode:
authorsignde <signde@openttd.org>2004-09-11 19:34:11 +0000
committersignde <signde@openttd.org>2004-09-11 19:34:11 +0000
commit1fb915df69aaa77ec8be39bb96650e5ec568e245 (patch)
treea7f24d905e8470f6331b816f08ef922fb43b8532 /variables.h
parentd03afadad23fced4bbb11df12a01f26cdbaf6844 (diff)
downloadopenttd-1fb915df69aaa77ec8be39bb96650e5ec568e245.tar.xz
(svn r207) -Codechange: randomizer handling
-Fix: desync problem fixes -Fix: server doesnt hang anymore when a client timed out -Feature: low latency connection enhancements [*net_sync_freq, *net_ready_ahead]
Diffstat (limited to 'variables.h')
-rw-r--r--variables.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/variables.h b/variables.h
index 9441fce88..26b133e8b 100644
--- a/variables.h
+++ b/variables.h
@@ -62,7 +62,9 @@ VARDEF uint16 _disaster_delay;
// tick handler.
VARDEF uint16 _station_tick_ctr;
-VARDEF uint32 _random_seed_1, _random_seed_2;
+VARDEF uint32 _random_seeds[2][2];
+VARDEF uint32 _player_seeds[MAX_PLAYERS][2];
+
// Iterator through all towns in OnTick_Town
VARDEF byte _cur_town_ctr;
@@ -214,10 +216,10 @@ VARDEF byte _cur_month;
VARDEF byte _player_colors[MAX_PLAYERS];
VARDEF bool _in_state_game_loop;
-VARDEF int32 _frame_counter;
+VARDEF uint32 _frame_counter;
-VARDEF int32 _frame_counter_max; // for networking, this is the frame that we are not allowed to execute yet.
-VARDEF int32 _frame_counter_srv; // for networking, this is the last known framecounter of the server. it is always less than frame_counter_max.
+VARDEF uint32 _frame_counter_max; // for networking, this is the frame that we are not allowed to execute yet.
+VARDEF uint32 _frame_counter_srv; // for networking, this is the last known framecounter of the server. it is always less than frame_counter_max.
// networking settings
VARDEF bool _network_available; // is network mode available?