aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/fastjogl/Model.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-19 19:39:57 +0000
committerHolger Zickner <[email protected]>2004-07-19 19:39:57 +0000
commita1fc4edc16c4e8960a0f2b0a97ea973b0785372a (patch)
tree92627719f99ddc26816ec2d0463d678e4cf15410 /src/jake2/render/fastjogl/Model.java
parentb378bf48ede3be8864dc094a615fba8890940714 (diff)
profiling
Diffstat (limited to 'src/jake2/render/fastjogl/Model.java')
-rw-r--r--src/jake2/render/fastjogl/Model.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jake2/render/fastjogl/Model.java b/src/jake2/render/fastjogl/Model.java
index e928c5e..90cb7c9 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.3 2004-07-16 10:11:35 cawe Exp $
+ * $Id: Model.java,v 1.4 2004-07-19 19:39:57 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -1084,7 +1084,11 @@ public abstract class Model extends Surf {
for (i=0 ; i<pheader.num_skins ; i++)
{
buffer.get(nameBuf);
- skinNames[i] = new String(nameBuf).trim();
+ skinNames[i] = new String(nameBuf);
+ int n = skinNames[i].indexOf('\0');
+ if (n > -1) {
+ skinNames[i] = skinNames[i].substring(0, n);
+ }
mod.skins[i] = GL_FindImage(skinNames[i], it_skin);
}