]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - client.h
make DP compile with C++ again
[xonotic/darkplaces.git] / client.h
index 1cd4065376c6f7b3b0433cf39ea06d2967873f20..96c1c65119ab722388ad9f2e7ed7245b58afbd30 100644 (file)
--- a/client.h
+++ b/client.h
@@ -634,7 +634,8 @@ typedef enum
        PARTICLE_BILLBOARD = 0,
        PARTICLE_SPARK = 1,
        PARTICLE_ORIENTED_DOUBLESIDED = 2,
-       PARTICLE_BEAM = 3
+       PARTICLE_BEAM = 3,
+       PARTICLE_INVALID = -1
 }
 porientation_t;
 
@@ -642,7 +643,8 @@ typedef enum
 {
        PBLEND_ALPHA = 0,
        PBLEND_ADD = 1,
-       PBLEND_INVMOD = 2
+       PBLEND_INVMOD = 2,
+       PBLEND_INVALID = -1
 }
 pblend_t;
 
@@ -685,8 +687,8 @@ typedef struct particle_s
 {
        // fields used by rendering: (40 bytes)
        unsigned char   typeindex;
-       unsigned char   blendmode;
-       unsigned char   orientation;
+       pblend_t   blendmode;
+       porientation_t   orientation;
        unsigned char   texnum;
        vec3_t                  org;
        vec3_t                  vel; // velocity of particle, or orientation of decal, or end point of beam