summaryrefslogtreecommitdiff
path: root/players.c
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 /players.c
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 'players.c')
-rw-r--r--players.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/players.c b/players.c
index 1101d1a70..3c72f625b 100644
--- a/players.c
+++ b/players.c
@@ -548,7 +548,7 @@ void RunOtherPlayersLoop()
_is_ai_player = true;
FOR_ALL_PLAYERS(p) {
- if (p->is_active) {
+ if (p->is_active && p->is_ai) {
_current_player = p->index;
if (_patches.ainew_active)
AiNewDoGameLoop(p);
@@ -558,8 +558,7 @@ void RunOtherPlayersLoop()
}
_is_ai_player = false;
-// XXX: is this needed?
- _current_player = 0;
+ _current_player = OWNER_NONE;
}
// index is the next parameter in _decode_parameters to set up