aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/client/V.java
diff options
context:
space:
mode:
authorCarsten Weisse <[email protected]>2005-01-20 23:15:23 +0000
committerCarsten Weisse <[email protected]>2005-01-20 23:15:23 +0000
commitd08bda0a87e7416db8ae72946693baa85b6e57dd (patch)
tree96e757c005aa975f8306252982ab1c6429430d79 /src/jake2/client/V.java
parent1a0c8b25b6f8a51506845818671013fddd62c0a2 (diff)
new entity_t() removed; ent.clear() is used (see C source)
the class V contains the only valid entity_t structures; see r_entities[] and V.AddEntity(); dynamic garbage reduced
Diffstat (limited to 'src/jake2/client/V.java')
-rw-r--r--src/jake2/client/V.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jake2/client/V.java b/src/jake2/client/V.java
index 402d16c..329613c 100644
--- a/src/jake2/client/V.java
+++ b/src/jake2/client/V.java
@@ -2,7 +2,7 @@
* V.java
* Copyright (C) 2003
*
- * $Id: V.java,v 1.3 2004-09-22 19:22:08 salomo Exp $
+ * $Id: V.java,v 1.4 2005-01-20 23:15:23 cawe Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -153,6 +153,8 @@ public final class V extends Globals {
ls.rgb[2] = b;
}
+ // stack variable
+ private static final float[] origin = { 0, 0, 0 };
/*
* ================ V_TestParticles
*
@@ -163,8 +165,6 @@ public final class V extends Globals {
int i, j;
float d, r, u;
- float[] origin = { 0, 0, 0 };
-
r_numparticles = 0;
for (i = 0; i < MAX_PARTICLES; i++) {
d = i * 0.25f;
@@ -192,7 +192,7 @@ public final class V extends Globals {
r_numentities = 32;
//memset (r_entities, 0, sizeof(r_entities));
for (i = 0; i < r_entities.length; i++)
- r_entities[i] = new entity_t();
+ r_entities[i].clear();
for (i = 0; i < r_numentities; i++) {
ent = r_entities[i];