aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/jogl/Warp.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2/render/jogl/Warp.java')
-rw-r--r--src/jake2/render/jogl/Warp.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/jake2/render/jogl/Warp.java b/src/jake2/render/jogl/Warp.java
index 6dc5145..ba89fc6 100644
--- a/src/jake2/render/jogl/Warp.java
+++ b/src/jake2/render/jogl/Warp.java
@@ -2,7 +2,7 @@
* Warp.java
* Copyright (C) 2003
*
- * $Id: Warp.java,v 1.4 2004-07-09 06:50:48 hzi Exp $
+ * $Id: Warp.java,v 1.5 2004-07-12 22:08:03 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -27,10 +27,7 @@ package jake2.render.jogl;
import jake2.Defines;
import jake2.Globals;
-import jake2.game.GameBase;
-import jake2.render.glpoly_t;
-import jake2.render.image_t;
-import jake2.render.msurface_t;
+import jake2.render.*;
import jake2.util.Math3D;
import net.java.games.jogl.GL;
@@ -117,13 +114,12 @@ public abstract class Warp extends Model {
float[] maxs = {0, 0, 0};
float m;
float[] v = {0, 0, 0};
- float[][] front = new float[64][3];
+ float[][] front = new float[64][3];
float[][] back = new float[64][3];
int f, b;
float[] dist = new float[64];
float frac;
- glpoly_t poly;
float s, t;
float[] total = {0, 0, 0};
float total_s, total_t;
@@ -192,7 +188,7 @@ public abstract class Warp extends Model {
// poly = Hunk_Alloc (sizeof(glpoly_t) + ((numverts-4)+2) * VERTEXSIZE*sizeof(float));
// init polys
- poly = new glpoly_t(numverts + 2);
+ glpoly_t poly = new glpoly_t(numverts + 2);
poly.next = warpface.polys;
warpface.polys = poly;