Mercurial > hg > openttd
changeset 7626:1ed80b271292 draft
(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.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 24 Sep 2007 20:55:13 +0000 |
parents | 7347a8c1cb2d |
children | 3fdf155a8d02 |
files | src/misc.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/misc.cpp +++ b/src/misc.cpp @@ -41,7 +41,7 @@ #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];