aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/server/SV_WORLD.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jake2/server/SV_WORLD.java')
-rw-r--r--src/jake2/server/SV_WORLD.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/jake2/server/SV_WORLD.java b/src/jake2/server/SV_WORLD.java
index 2eb2ca6..cb74e95 100644
--- a/src/jake2/server/SV_WORLD.java
+++ b/src/jake2/server/SV_WORLD.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 07.01.2000 by RST.
-// $Id: SV_WORLD.java,v 1.4 2004-07-09 06:50:49 hzi Exp $
+// $Id: SV_WORLD.java,v 1.5 2004-08-20 21:29:57 salomo Exp $
package jake2.server;
@@ -176,6 +176,7 @@ public class SV_WORLD extends SV_CCMDS
{
if (null == ent.area.prev)
return; // not linked in anywhere
+
RemoveLink(ent.area);
ent.area.prev= ent.area.next= null;
}
@@ -212,7 +213,8 @@ public class SV_WORLD extends SV_CCMDS
// encode the size into the entity_state for client prediction
if (ent.solid == SOLID_BBOX && 0 == (ent.svflags & SVF_DEADMONSTER))
- { // assume that x/y are equal and symetric
+ {
+ // assume that x/y are equal and symetric
int i= (int) (ent.maxs[0] / 8);
if (i < 1)
i= 1;
@@ -244,7 +246,8 @@ public class SV_WORLD extends SV_CCMDS
// set the abs box
if (ent.solid == SOLID_BSP && (ent.s.angles[0] != 0 || ent.s.angles[1] != 0 || ent.s.angles[2] != 0))
- { // expand for rotation
+ {
+ // expand for rotation
float max, v;
max= 0;
@@ -264,7 +267,8 @@ public class SV_WORLD extends SV_CCMDS
}
}
else
- { // normal
+ {
+ // normal
VectorAdd(ent.s.origin, ent.mins, ent.absmin);
VectorAdd(ent.s.origin, ent.maxs, ent.absmax);
}
@@ -284,7 +288,7 @@ public class SV_WORLD extends SV_CCMDS
ent.areanum= 0;
ent.areanum2= 0;
- //get all leafs, including solids
+ // get all leafs, including solids
int iw[] = {topnode};