summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2004-10-24 21:12:43 +0000
committerCarsten Weisse <[email protected]>2004-10-24 21:12:43 +0000
commit3b5bf5eb8fcfe8f23ed575c264c5dd97ad62819b (patch)
tree1f5fceb1eaf105a1062674b5fa8cd00cb587bcd4
parent303a4de5fd0a2bc83236a655db59e1daf038d7d1 (diff)
string bugfix and faster filecheck
-rw-r--r--src/jake2/client/CL_parse.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jake2/client/CL_parse.java b/src/jake2/client/CL_parse.java
index ad447c2..b2b4245 100644
--- a/src/jake2/client/CL_parse.java
+++ b/src/jake2/client/CL_parse.java
@@ -2,7 +2,7 @@
* CL_parse.java
* Copyright (C) 2004
*
- * $Id: CL_parse.java,v 1.11 2004-10-24 21:02:05 salomo Exp $
+ * $Id: CL_parse.java,v 1.12 2004-10-24 21:12:43 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -56,7 +56,7 @@ public class CL_parse {
// =============================================================================
public static String DownloadFileName(String fn) {
- if ("players".equals(fn))
+ if (fn.startsWith("players"))
return Globals.BASEDIRNAME + "/" + fn;
else
return FS.Gamedir() + "/" + fn;
@@ -77,7 +77,7 @@ public class CL_parse {
return true;
}
- if (FS.LoadFile(filename) != null) { // it exists, no need to download
+ if (FS.FileLength(filename) > 0) { // it exists, no need to download
return true;
}