diff options
author | Holger Zickner <[email protected]> | 2005-01-12 12:14:27 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2005-01-12 12:14:27 +0000 |
commit | 05e9dad90a93896d223ff0070911cd5f2ccf3c4c (patch) | |
tree | 0fb798e95069d36e8b2024d9ddc11d683980f0ef /src/jake2/qcommon/PMove.java | |
parent | fc66c072c721c7ed4b8cf329bf50aa619c1030e2 (diff) |
small performance improvements
Diffstat (limited to 'src/jake2/qcommon/PMove.java')
-rw-r--r-- | src/jake2/qcommon/PMove.java | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/jake2/qcommon/PMove.java b/src/jake2/qcommon/PMove.java index f4e92c3..3a35523 100644 --- a/src/jake2/qcommon/PMove.java +++ b/src/jake2/qcommon/PMove.java @@ -19,14 +19,12 @@ */ // Created on 25.01.2004 by RST. -// $Id: PMove.java,v 1.5 2004-09-22 19:22:09 salomo Exp $ +// $Id: PMove.java,v 1.6 2005-01-12 12:14:16 hzi Exp $ package jake2.qcommon; -import jake2.*; -import jake2.client.*; +import jake2.Defines; +import jake2.Globals; import jake2.game.*; -import jake2.render.*; -import jake2.server.*; import jake2.util.Math3D; public class PMove { @@ -47,8 +45,6 @@ public class PMove { public csurface_t groundsurface; - public cplane_t groundplane = new cplane_t(); - public int groundcontents; public float[] previous_origin = { 0, 0, 0 }; @@ -618,7 +614,6 @@ public class PMove { } else { trace = PMove.pm.trace.trace(PMove.pml.origin, PMove.pm.mins, PMove.pm.maxs, point); - PMove.pml.groundplane = trace.plane; PMove.pml.groundsurface = trace.surface; PMove.pml.groundcontents = trace.contents; @@ -1069,8 +1064,8 @@ public class PMove { PMove.pm.watertype = 0; PMove.pm.waterlevel = 0; - // clear all pmove local vars - PMove.pml = new PMove.pml_t(); + PMove.pml.groundsurface = null; + PMove.pml.groundcontents = 0; // convert origin and velocity to float values PMove.pml.origin[0] = PMove.pm.s.origin[0] * 0.125f; |