diff options
author | Carsten Weisse <[email protected]> | 2005-02-08 17:52:20 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-02-08 17:52:20 +0000 |
commit | ee62e5f9ad5761d812d31ea3b5099a80cad6a836 (patch) | |
tree | d0c7eb4240f86c4dba2b6401b91f259f0ac936bc | |
parent | 03d1b3d3b0475cebb7ac2773d217e007d8146793 (diff) |
a better test for empty strings
-rw-r--r-- | src/jake2/render/fastjogl/Model.java | 10 | ||||
-rw-r--r-- | src/jake2/render/jogl/Model.java | 10 | ||||
-rw-r--r-- | src/jake2/render/lwjgl/Model.java | 10 |
3 files changed, 15 insertions, 15 deletions
diff --git a/src/jake2/render/fastjogl/Model.java b/src/jake2/render/fastjogl/Model.java index 9b42fd0..173c3e9 100644 --- a/src/jake2/render/fastjogl/Model.java +++ b/src/jake2/render/fastjogl/Model.java @@ -2,7 +2,7 @@ * Model.java * Copyright (C) 2003 * - * $Id: Model.java,v 1.8 2005-01-22 22:30:35 cawe Exp $ + * $Id: Model.java,v 1.9 2005-02-08 17:50:04 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -161,7 +161,7 @@ public abstract class Model extends Surf { VID.Printf(Defines.PRINT_ALL, "Loaded models:\n"); for (i = 0; i < mod_numknown; i++) { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) continue; VID.Printf(Defines.PRINT_ALL, "%8i : %s\n", new Vargs(2).add( @@ -212,7 +212,7 @@ public abstract class Model extends Surf { for (i = 0; i < mod_numknown; i++) { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) continue; if (mod.name.equals(name)) return mod; @@ -224,7 +224,7 @@ public abstract class Model extends Surf { for (i = 0; i < mod_numknown; i++) { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) break; // free spot } if (i == mod_numknown) { @@ -1140,7 +1140,7 @@ public abstract class Model extends Surf { for (int i = 0; i < mod_numknown; i++) { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) continue; if (mod.registration_sequence != registration_sequence) { // don't // need diff --git a/src/jake2/render/jogl/Model.java b/src/jake2/render/jogl/Model.java index 8ec3d85..7f2a29f 100644 --- a/src/jake2/render/jogl/Model.java +++ b/src/jake2/render/jogl/Model.java @@ -2,7 +2,7 @@ * Model.java * Copyright (C) 2003 * - * $Id: Model.java,v 1.5 2005-01-09 22:34:21 cawe Exp $ + * $Id: Model.java,v 1.6 2005-02-08 17:51:20 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -174,7 +174,7 @@ public abstract class Model extends Surf { for (i=0; i < mod_numknown ; i++) { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) continue; VID.Printf (Defines.PRINT_ALL, "%8i : %s\n", new Vargs(2).add(mod.extradatasize).add(mod.name)); @@ -232,7 +232,7 @@ public abstract class Model extends Surf { { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) continue; if (mod.name.equals(name) ) return mod; @@ -245,7 +245,7 @@ public abstract class Model extends Surf { { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) break; // free spot } if (i == mod_numknown) @@ -1225,7 +1225,7 @@ public abstract class Model extends Surf { for (int i=0; i<mod_numknown ; i++) { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) continue; if (mod.registration_sequence != registration_sequence) { // don't need this model diff --git a/src/jake2/render/lwjgl/Model.java b/src/jake2/render/lwjgl/Model.java index d1907b7..023f8d4 100644 --- a/src/jake2/render/lwjgl/Model.java +++ b/src/jake2/render/lwjgl/Model.java @@ -2,7 +2,7 @@ * Model.java * Copyright (C) 2003 * - * $Id: Model.java,v 1.6 2005-01-22 22:28:15 cawe Exp $ + * $Id: Model.java,v 1.7 2005-02-08 17:52:20 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -176,7 +176,7 @@ public abstract class Model extends Surf { for (i=0; i < mod_numknown ; i++) { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) continue; VID.Printf (Defines.PRINT_ALL, "%8i : %s\n", new Vargs(2).add(mod.extradatasize).add(mod.name)); @@ -234,7 +234,7 @@ public abstract class Model extends Surf { { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) continue; if (mod.name.equals(name) ) return mod; @@ -247,7 +247,7 @@ public abstract class Model extends Surf { { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) break; // free spot } if (i == mod_numknown) @@ -1234,7 +1234,7 @@ public abstract class Model extends Surf { for (int i=0; i<mod_numknown ; i++) { mod = mod_known[i]; - if (mod.name == "") + if (mod.name.length() == 0) continue; if (mod.registration_sequence != registration_sequence) { // don't need this model |