]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - server.h
sv.edicts (and related things) are now dynamically reallocated as more edicts are...
[xonotic/darkplaces.git] / server.h
index 4887aa13e388404cf0ea75f8106aa9df674b1135..47e917c24e6171bbdf8a5c22dbf2b5579c96bfa1 100644 (file)
--- a/server.h
+++ b/server.h
@@ -71,6 +71,10 @@ typedef struct
        edict_t *edicts;
        // can be array indexed
        edict_t **edictstable;
+       // array of QC edict field variables
+       void *edictsfields;
+       // PushMove sometimes has to move entities back from a failed move
+       edict_t **moved_edicts;
        // some actions are only valid during load
        server_state_t state;
 
@@ -122,9 +126,9 @@ typedef struct client_s
 
        // can be added to at any time, copied and clear once per frame
        sizebuf_t message;
-       qbyte msgbuf[MAX_MSGLEN];
-       // EDICT_NUM(clientnum+1)
-       edict_t *edict;
+       qbyte msgbuf[MAX_DATAGRAM];
+       // (clientnum+1)
+       int edictnumber;
        // for printing to other people
        char name[32];
        int colors;
@@ -301,5 +305,7 @@ void SV_SpawnServer (const char *server);
 
 void SV_SetMaxClients(int n);
 
+void SV_CheckVelocity (edict_t *ent);
+
 #endif