]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - progs.h
fix chthon lightning (ugh, how did I manage to use polygon lightning for this, I...
[xonotic/darkplaces.git] / progs.h
diff --git a/progs.h b/progs.h
index 1438dce2eba0044d4f51808bb24aeb606cc5755f..6d3fb99946a220721207aa363929c0478eaa6151 100644 (file)
--- a/progs.h
+++ b/progs.h
@@ -37,9 +37,12 @@ typedef union eval_s
 
 typedef struct link_s
 {
+       void *entity;
        struct link_s   *prev, *next;
 } link_t;
 
+#define ENTITYGRIDAREAS 16
+
 // the entire server entity structure
 typedef struct edict_s
 {
@@ -47,6 +50,8 @@ typedef struct edict_s
        qboolean free;
        // physics area this edict is linked into
        link_t area;
+       // physics grid areas this edict is linked into
+       link_t areagrid[ENTITYGRIDAREAS];
 
        // old entity protocol, not used
 #ifdef QUAKEENTITIES