aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2005-06-11 17:21:21 +0000
committerHolger Zickner <[email protected]>2005-06-11 17:21:21 +0000
commit1eabf77647d7dce172834a9e538fcff759942ba0 (patch)
treed80a64b8c886f47732fbcc32789bf68352392710 /src
parentdd73a2bf21635db5b1001026096c29e04ca32576 (diff)
there is no mode "a" in Java
Diffstat (limited to 'src')
-rw-r--r--src/jake2/qcommon/Com.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jake2/qcommon/Com.java b/src/jake2/qcommon/Com.java
index d3386d2..9ff3a99 100644
--- a/src/jake2/qcommon/Com.java
+++ b/src/jake2/qcommon/Com.java
@@ -2,7 +2,7 @@
* Com.java
* Copyright (C) 2003
*
- * $Id: Com.java,v 1.11 2005-02-06 19:25:55 salomo Exp $
+ * $Id: Com.java,v 1.12 2005-06-11 17:21:21 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -400,9 +400,10 @@ public final class Com
if (Globals.logfile_active.value > 2)
try
{
- Globals.logfile= new RandomAccessFile(name, "a");
+ Globals.logfile = new RandomAccessFile(name, "rw");
+ Globals.logfile.seek(Globals.logfile.length());
}
- catch (FileNotFoundException e)
+ catch (Exception e)
{
// TODO: do quake2 error handling!
e.printStackTrace();