summaryrefslogtreecommitdiff
path: root/src/core/random_func.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-01-26 17:24:56 +0000
committerrubidium <rubidium@openttd.org>2012-01-26 17:24:56 +0000
commita48e3cb891af580dc03e3fe1ae8d4978fad575fe (patch)
treec81648ce0840f55aacdfd3e1e61a66b09d4b6cb4 /src/core/random_func.cpp
parentd99eb6aac2c8f772632291d71e5334f13f4d534f (diff)
downloadopenttd-a48e3cb891af580dc03e3fe1ae8d4978fad575fe.tar.xz
(svn r23854) -Codechange: make it easier to put random debug stuff into the random log
Diffstat (limited to 'src/core/random_func.cpp')
-rw-r--r--src/core/random_func.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/random_func.cpp b/src/core/random_func.cpp
index 5adc17066..7800591e6 100644
--- a/src/core/random_func.cpp
+++ b/src/core/random_func.cpp
@@ -69,11 +69,7 @@ void SetRandomSeed(uint32 seed)
uint32 DoRandom(int line, const char *file)
{
if (_networking && (!_network_server || (NetworkClientSocket::IsValidID(0) && NetworkClientSocket::Get(0)->status != NetworkClientSocket::STATUS_INACTIVE))) {
- static FILE *f = FioFOpenFile("random-out.log", "wb", AUTOSAVE_DIR);
- if (f != NULL) {
- fprintf(f, "%08x; %02x; %04x; %02x; %s:%d\n", _date, _date_fract, _frame_counter, (byte)_current_company, file, line);
- fflush(f);
- }
+ DEBUG(random, 0, "%08x; %02x; %04x; %02x; %s:%d", _date, _date_fract, _frame_counter, (byte)_current_company, file, line);
}
return _random.Next();