summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-09-24 20:55:13 +0000
committerrubidium <rubidium@openttd.org>2007-09-24 20:55:13 +0000
commit0ac4f10ca04741076430fabd62883213419f73a8 (patch)
tree750621b64b73b14c2bceb1bb268ef5540202969e /src/misc.cpp
parent958895a7a7acbe71260d0e42cf8b9d9a7ac70642 (diff)
downloadopenttd-0ac4f10ca04741076430fabd62883213419f73a8.tar.xz
(svn r11157) -Fix: some random data was printed because printf "thought" that _current_player is 4 bytes instead of 1 byte, causing the random debug output to be useless.
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index 2e3bd2bff..8a1c2975e 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -41,7 +41,7 @@ uint32 t;
#ifdef RANDOM_DEBUG
if (_networking && (DEREF_CLIENT(0)->status != STATUS_INACTIVE || !_network_server))
- printf("Random [%d/%d] %s:%d\n",_frame_counter, _current_player, file, line);
+ printf("Random [%d/%d] %s:%d\n",_frame_counter, (byte)_current_player, file, line);
#endif
s = _random_seeds[0][0];