diff options
author | Carsten Weisse <[email protected]> | 2005-01-20 23:15:23 +0000 |
---|---|---|
committer | Carsten Weisse <[email protected]> | 2005-01-20 23:15:23 +0000 |
commit | d08bda0a87e7416db8ae72946693baa85b6e57dd (patch) | |
tree | 96e757c005aa975f8306252982ab1c6429430d79 /src/jake2/client/Menu.java | |
parent | 1a0c8b25b6f8a51506845818671013fddd62c0a2 (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/Menu.java')
-rw-r--r-- | src/jake2/client/Menu.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jake2/client/Menu.java b/src/jake2/client/Menu.java index 8f3d9bf..add2651 100644 --- a/src/jake2/client/Menu.java +++ b/src/jake2/client/Menu.java @@ -2,7 +2,7 @@ * Menu.java * Copyright (C) 2004 * - * $Id: Menu.java,v 1.16 2005-01-12 08:47:42 hzi Exp $ + * $Id: Menu.java,v 1.17 2005-01-20 23:15:23 cawe Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -4094,6 +4094,8 @@ public final class Menu extends Key { } static int yaw; + + private static final entity_t entity = new entity_t(); static void PlayerConfig_MenuDraw() { @@ -4115,9 +4117,8 @@ public final class Menu extends Key { if (s_pmi[s_player_model_box.curvalue].skindisplaynames != null) { int maxframe = 29; - entity_t entity = new entity_t(); - //memset(entity, 0, sizeof(entity)); + entity.clear(); scratch = "players/" + s_pmi[s_player_model_box.curvalue].directory + "/tris.md2"; |