From 6c16c6174e702b4655cdacaee79a61afb48690f1 Mon Sep 17 00:00:00 2001 From: zicodxx <> Date: Mon, 8 Feb 2010 14:28:12 +0000 Subject: [PATCH] Write gamelog.txt buffered so it will not stress the medium it's saved on --- CHANGELOG.txt | 1 + main/console.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 9ed6e6f8f..0acc4ea01 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -6,6 +6,7 @@ main/menu.c, main/scores.c, main/scores.h: Move all globals in scores.c into str main/game.c, main/newdemo.c: Don't make another Game_wind when advancing a level, fixing failed asserts / slow turning arch/sdl/window.c: Don't send an EVENT_WINDOW_DEACTIVATED when closing a window if it wasn't the front window, now the game works properly after you're shown on the high scores main/collide.c, main/object.c, main/object.h, main/state.c: Introduced hitobj_list for persistent weapon objects to keep track of multiple objects the weapon is in contect with to prevent it from doing FPS-based damage; Made persistent weapon objects not die on debris but just decrease their shields like when an ordinary player/robot is hit - makes more sense +main/console.c: Write gamelog.txt buffered so it will not stress the medium it's saved on 20100207 -------- diff --git a/main/console.c b/main/console.c index 76100ebe7..b40251816 100644 --- a/main/console.c +++ b/main/console.c @@ -209,7 +209,7 @@ void con_init(void) { memset(con_buffer,0,sizeof(con_buffer)); - gamelog_fp = PHYSFS_openWrite("gamelog.txt"); + gamelog_fp = PHYSFSX_openWriteBuffered("gamelog.txt"); atexit(con_close); }