From 5094d0859a7ca4116d59dcfd1dfb606472a69feb Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 16 Oct 2013 10:55:09 -0700 Subject: Flush GM log after every single freaking log entry Oh well, I guess it's still slightly better than reopening the file all the time ... There's still a bug in our cron scripts if no one uses a GM command in the first few minutes of a new month. --- src/map/atcommand.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/atcommand.cpp') diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 508209c..2ed853f 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -422,6 +422,7 @@ void log_atcommand(dumb_ptr sd, ZString cmd) sd->bl_m->name_, sd->bl_x, sd->bl_y, sd->status.name, sd->status.account_id, cmd); + fflush(fp); } FString gm_log; -- cgit v1.2.3-60-g2f50