aboutsummaryrefslogtreecommitdiffstats
path: root/src/jake2/server/SV_ENTS.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/server/SV_ENTS.java
parent76839da3568e20f51220584d1fc92841b216505a (diff)
import of Jake2 version hannover
Diffstat (limited to 'src/jake2/server/SV_ENTS.java')
-rw-r--r--src/jake2/server/SV_ENTS.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/jake2/server/SV_ENTS.java b/src/jake2/server/SV_ENTS.java
index de27378..6437dff 100644
--- a/src/jake2/server/SV_ENTS.java
+++ b/src/jake2/server/SV_ENTS.java
@@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// Created on 17.01.2004 by RST.
-// $Id: SV_ENTS.java,v 1.1 2004-07-07 19:59:45 hzi Exp $
+// $Id: SV_ENTS.java,v 1.2 2004-07-08 15:58:45 hzi Exp $
package jake2.server;
@@ -129,7 +129,9 @@ public class SV_ENTS extends SV_USER {
static void SV_WritePlayerstateToClient(client_frame_t from, client_frame_t to, sizebuf_t msg) {
int i;
int pflags;
+ // ptr
player_state_t ps, ops;
+ // mem
player_state_t dummy;
int statbits;
@@ -301,13 +303,13 @@ public class SV_ENTS extends SV_USER {
==================
*/
public static void SV_WriteFrameToClient(client_t client, sizebuf_t msg) {
+ //ptr
client_frame_t frame, oldframe;
int lastframe;
//Com.Printf ("%i . %i\n", new Vargs().add(client.lastframe).add(sv.framenum));
// this is the frame we are creating
frame = client.frames[sv.framenum & UPDATE_MASK];
-
if (client.lastframe <= 0) { // client is asking for a retransmit
oldframe = null;
lastframe = -1;
@@ -447,7 +449,7 @@ public class SV_ENTS extends SV_USER {
frame.areabytes = CM.CM_WriteAreaBits(frame.areabits, clientarea);
// grab the current player_state_t
- frame.ps = clent.client.ps;
+ frame.ps.set(clent.client.ps);
SV_FatPVS(org);
clientphs = CM.CM_ClusterPHS(clientcluster);
@@ -529,7 +531,7 @@ public class SV_ENTS extends SV_USER {
}
//*state = ent.s;
- svs.client_entities[ix] = ent.s;
+ svs.client_entities[ix].set(ent.s);
// don't mark players missiles as solid
if (ent.owner == client.edict)