aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/game/trace_t.java
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-07-08 15:58:48 +0000
committerHolger Zickner <[email protected]>2004-07-08 15:58:48 +0000
commit4f13ea26c4f47e54e66926f0700cf631e7bb3352 (patch)
treea9d434fc462417bb981b1565fd64cea5e7c82c15 /src/jake2/game/trace_t.java
parent76839da3568e20f51220584d1fc92841b216505a (diff)
import of Jake2 version hannover
Diffstat (limited to 'src/jake2/game/trace_t.java')
-rw-r--r--src/jake2/game/trace_t.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/jake2/game/trace_t.java b/src/jake2/game/trace_t.java
index 5c97aa5..efb65fb 100644
--- a/src/jake2/game/trace_t.java
+++ b/src/jake2/game/trace_t.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 31.10.2003 by RST.
-// $Id: trace_t.java,v 1.1 2004-07-07 19:59:26 hzi Exp $
+// $Id: trace_t.java,v 1.2 2004-07-08 15:58:44 hzi Exp $
package jake2.game;
@@ -39,6 +39,18 @@ public class trace_t implements Cloneable {
// pointer
public edict_t ent; // not set by CM_*() functions
+ public void set(trace_t from)
+ {
+ allsolid = from.allsolid;
+ startsolid = from.allsolid;
+ fraction = from.fraction;
+ endpos = Lib.clone(endpos);
+ plane = from.plane.getClone();
+ surface = from.surface;
+ contents = from.contents;
+ ent = from.ent;
+ }
+
// =============
public trace_t getClone() {
trace_t out = null;