diff options
author | Carsten Weisse <[email protected]> | 2005-01-16 13:56:49 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-01-16 13:56:49 +0000 |
commit | ee466ee40ab2c6fba6c300651702369195907f9f (patch) | |
tree | fa9a9dd64451d87db31c8f82ba0ceb627b31f66b /src/jake2 | |
parent | 33b571d2c60ef46d12eaf7562b24c366db3b99ed (diff) |
clear() added; enderer package wiil use this.
Diffstat (limited to 'src/jake2')
-rw-r--r-- | src/jake2/client/entity_t.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/jake2/client/entity_t.java b/src/jake2/client/entity_t.java index 3547e86..d8a7549 100644 --- a/src/jake2/client/entity_t.java +++ b/src/jake2/client/entity_t.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 20.11.2003 by RST. -// $Id: entity_t.java,v 1.1 2004-07-07 19:58:52 hzi Exp $ +// $Id: entity_t.java,v 1.2 2005-01-16 13:56:49 cawe Exp $ package jake2.client; @@ -72,5 +72,20 @@ public class entity_t implements Cloneable{ this.skin = src.skin; this.flags = src.flags; } + + public void clear() { + model = null; + Math3D.VectorClear(angles); + Math3D.VectorClear(origin); + frame = 0; + Math3D.VectorClear(oldorigin); + oldframe = 0; + backlerp = 0; + skinnum = 0; + lightstyle = 0; + alpha = 0; + skin = null; + flags = 0; + } } |