aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/render/msurface_t.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-09 08:38:30 +0000
committerHolger Zickner <[email protected]>2004-07-09 08:38:30 +0000
commit76230d5ab9be20bfc25de6f3e50504a4287575d0 (patch)
tree8ec5a6485478c7fde8944e6477e466e3adceab36 /src/jake2/render/msurface_t.java
parent1e132c95409d6a7f3baf499b50f0bc7d22969b07 (diff)
import of Jake2 version v_0_9_2v_0_9_2
Diffstat (limited to 'src/jake2/render/msurface_t.java')
-rw-r--r--src/jake2/render/msurface_t.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/jake2/render/msurface_t.java b/src/jake2/render/msurface_t.java
index c6247d9..798ca74 100644
--- a/src/jake2/render/msurface_t.java
+++ b/src/jake2/render/msurface_t.java
@@ -19,11 +19,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 20.11.2003 by RST.
-// $Id: msurface_t.java,v 1.2 2004-07-08 20:24:29 hzi Exp $
+// $Id: msurface_t.java,v 1.2.2.1 2004-07-09 08:38:23 hzi Exp $
package jake2.render;
import java.nio.ByteBuffer;
+import java.util.Arrays;
import jake2.game.*;
import jake2.qcommon.texinfo_t;
@@ -67,23 +68,25 @@ public class msurface_t
public void clear() {
visframe = 0;
- //plane = null;
+ plane = null;
+ plane = new cplane_t();
flags = 0;
firstedge = 0;
numedges = 0;
- texturemins[0] = texturemins[1] = 0;
+ texturemins[0] = texturemins[1] = -1;
extents[0] = extents[1] = 0;
light_s = light_t = 0;
dlight_s = dlight_t = 0;
- //polys = null;
+ polys = null;
texturechain = null;
lightmapchain = null;
- //texinfo = null;
+ //texinfo = new mtexinfo_t();
+ texinfo.clear();
dlightframe = 0;
dlightbits = 0;
@@ -98,6 +101,6 @@ public class msurface_t
{
cached_light[i] = 0;
}
- //samples = null;
+ if (samples != null) samples.clear();
}
}