(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.
authorrubidium
Mon, 24 Sep 2007 20:55:13 +0000
changeset 7626 033a5a26b066
parent 7625 36b37d05937f
child 7627 9a215ee83593
(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.
src/misc.cpp
--- a/src/misc.cpp	Mon Sep 24 19:55:50 2007 +0000
+++ b/src/misc.cpp	Mon Sep 24 20:55:13 2007 +0000
@@ -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];