diff --git a/bspfile.h b/bspfile.h index 0f7defd..e22873f 100644 --- a/bspfile.h +++ b/bspfile.h @@ -47,6 +47,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MAX_MAP_PORTALS 65536 #define MAX_MAP_LEAFCURVES 65536 #define MAX_MAP_CURVES 4096 +#define MAX_MAP_AREAS 0x100 + // key / value pair sizes @@ -137,7 +139,8 @@ typedef struct } dplane_t; - +/* +//PENTA: Q3 has another contents system #define CONTENTS_EMPTY -1 #define CONTENTS_SOLID -2 #define CONTENTS_WATER -3 @@ -146,7 +149,7 @@ typedef struct #define CONTENTS_SKY -6 #define CONTENTS_ORIGIN -7 // removed at csg time #define CONTENTS_CLIP -8 // changed to contents_solid - +*/ #define CONTENTS_CURRENT_0 -9 #define CONTENTS_CURRENT_90 -10 #define CONTENTS_CURRENT_180 -11 diff --git a/cl_parse.c b/cl_parse.c index b2c1f2f..1c5e950 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -65,6 +65,9 @@ char *svc_strings[] = "svc_cdtrack", // [byte] track [byte] looptrack "svc_sellscreen", "svc_cutscene", + "svc_basicemitter", + "svc_extendedemitter", + "svc_areaportalstate", }; //============================================================================= @@ -1027,6 +1030,12 @@ void CL_ParseServerMessage (void) case svc_sellscreen: Cmd_ExecuteString ("help", src_command); break; + + case svc_areaportalstate: + r_refdef.areabytes = MSG_ReadByte(); + for (i=0; i