aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/client/Menu.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-23 10:09:55 +0000
committerHolger Zickner <[email protected]>2004-07-23 10:09:55 +0000
commita161d9817f1a86aedffb8789e2134c6a29e5fa35 (patch)
tree9d5298865c5a7781c099a0f3fca94c2205476610 /src/jake2/client/Menu.java
parent4d14584117e56e51ea4fd69de1807a0e3329e7dc (diff)
replace Lib functions
Diffstat (limited to 'src/jake2/client/Menu.java')
-rw-r--r--src/jake2/client/Menu.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jake2/client/Menu.java b/src/jake2/client/Menu.java
index faaf77c..c6c7606 100644
--- a/src/jake2/client/Menu.java
+++ b/src/jake2/client/Menu.java
@@ -2,7 +2,7 @@
* Menu.java
* Copyright (C) 2004
*
- * $Id: Menu.java,v 1.4 2004-07-09 06:50:50 hzi Exp $
+ * $Id: Menu.java,v 1.5 2004-07-23 10:02:49 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -2531,7 +2531,7 @@ public final class Menu extends Key {
// ignore if duplicated
for (i = 0; i < m_num_servers; i++)
- if (0 == strcmp(x, local_server_names[i]))
+ if (x.equals(local_server_names[i]))
return;
local_server_netadr[m_num_servers] = adr;
@@ -3924,7 +3924,7 @@ public final class Menu extends Key {
// copy the valid skins
for (s = 0, k = 0; k < npcxfiles - 1; k++) {
- if (!strstr(pcxnames[k], "_i.pcx")) {
+ if (pcxnames[k].indexOf("_i.pcx") < 0) {
if (IconOfSkinExists(pcxnames[k], pcxnames, npcxfiles - 1)) {
a = pcxnames[k].lastIndexOf('/');
b = pcxnames[k].lastIndexOf('\\');