aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-28 12:01:27 +0000
committerHolger Zickner <[email protected]>2004-07-28 12:01:27 +0000
commit9567b7d3f26a222a3d3210a398a3ea91235a914a (patch)
tree3a6d1ca0ac2b51aae365abd61297b4722258ee12
parentb5de667077d7a0b2a469ede1d592d3980ca57b8f (diff)
replace Lib functions
-rw-r--r--src/jake2/qcommon/CM.java4
-rw-r--r--src/jake2/sys/Sys.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/jake2/qcommon/CM.java b/src/jake2/qcommon/CM.java
index a75cf05..5978f88 100644
--- a/src/jake2/qcommon/CM.java
+++ b/src/jake2/qcommon/CM.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 02.01.2004 by RST.
-// $Id: CM.java,v 1.4 2004-07-12 20:47:00 hzi Exp $
+// $Id: CM.java,v 1.5 2004-07-28 12:01:27 hzi Exp $
package jake2.qcommon;
@@ -198,7 +198,7 @@ public class CM extends Game {
map_noareas = Cvar.Get("map_noareas", "0", 0);
- if (0 == strcmp(map_name, name) && (clientload || 0 == Cvar.VariableValue("flushmap"))) {
+ if (map_name.equals(name) && (clientload || 0 == Cvar.VariableValue("flushmap"))) {
checksum[0] = last_checksum;
diff --git a/src/jake2/sys/Sys.java b/src/jake2/sys/Sys.java
index ddab111..cd09fd6 100644
--- a/src/jake2/sys/Sys.java
+++ b/src/jake2/sys/Sys.java
@@ -2,7 +2,7 @@
* Sys.java
* Copyright (C) 2003
*
- * $Id: Sys.java,v 1.5 2004-07-19 19:22:57 hzi Exp $
+ * $Id: Sys.java,v 1.6 2004-07-28 11:59:32 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -176,7 +176,7 @@ public final class Sys extends Defines {
// . and .. never match
String name = dir.getName();
- if (Lib.strcmp(name, ".") == 0 || Lib.strcmp(name, "..") == 0)
+ if (name.equals(".") || name.equals(".."))
return false;
return true;