diff options
Diffstat (limited to 'src/jake2/server')
-rw-r--r-- | src/jake2/server/SV_CCMDS.java | 9 | ||||
-rw-r--r-- | src/jake2/server/SV_ENTS.java | 31 |
2 files changed, 11 insertions, 29 deletions
diff --git a/src/jake2/server/SV_CCMDS.java b/src/jake2/server/SV_CCMDS.java index e84762f..69df089 100644 --- a/src/jake2/server/SV_CCMDS.java +++ b/src/jake2/server/SV_CCMDS.java @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ // Created on 18.01.2004 by RST. -// $Id: SV_CCMDS.java,v 1.14 2005-02-19 21:21:19 salomo Exp $ +// $Id: SV_CCMDS.java,v 1.15 2005-12-03 19:45:42 salomo Exp $ package jake2.server; @@ -173,13 +173,8 @@ public class SV_CCMDS { catch (Exception e) { } } - /* - ===================== - SV_WipeSavegame - Delete save/<XXX>/ - ===================== - */ + /** Delete save files save/(number)/. */ public static void SV_WipeSavegame(String savename) { String name, s; diff --git a/src/jake2/server/SV_ENTS.java b/src/jake2/server/SV_ENTS.java index 706fc27..6f4ca0f 100644 --- a/src/jake2/server/SV_ENTS.java +++ b/src/jake2/server/SV_ENTS.java @@ -19,7 +19,7 @@ */ // Created on 17.01.2004 by RST. -// $Id: SV_ENTS.java,v 1.5 2004-09-22 19:22:12 salomo Exp $ +// $Id: SV_ENTS.java,v 1.6 2005-12-03 19:46:17 salomo Exp $ package jake2.server; import jake2.Defines; @@ -359,12 +359,8 @@ public class SV_ENTS { SV_EmitPacketEntities(oldframe, frame, msg); } - /* - * ============ SV_FatPVS - * - * The client will interpolate the view position, so we can't use a single - * PVS point =========== - */ + /** The client will interpolate the view position, so we can't use a single + * PVS point. */ public static void SV_FatPVS(float[] org) { int leafs[] = new int[64]; int i, j, count; @@ -412,11 +408,9 @@ public class SV_ENTS { } } - /* - * ============= SV_BuildClientFrame - * + /** * Decides which entities are going to be visible to the client, and copies - * off the playerstat and areabits. ============= + * off the playerstat and areabits. */ public static void SV_BuildClientFrame(client_t client) { int e, i; @@ -478,18 +472,11 @@ public class SV_ENTS { continue; // ignore if not touching a PV leaf - if (ent != clent) { // check area - if (!CM.CM_AreasConnected(clientarea, ent.areanum)) { // doors - // can - // legally - // straddle - // two - // areas, - // so - // we may need to check another one - if (0 == ent.areanum2 - || !CM.CM_AreasConnected(clientarea, ent.areanum2)) + if (ent != clent) { + if (!CM.CM_AreasConnected(clientarea, ent.areanum)) { + // doors can legally straddle two areas, so we may need to check another one + if (0 == ent.areanum2 || !CM.CM_AreasConnected(clientarea, ent.areanum2)) continue; // blocked by a door } |