Write gamelog.txt buffered so it will not stress the medium it's saved on

This commit is contained in:
zicodxx 2010-02-08 14:28:12 +00:00
parent 4ebc007757
commit 6c16c6174e
2 changed files with 2 additions and 1 deletions

View file

@ -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
--------

View file

@ -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);
}