Added area portals
This commit is contained in:
parent
c7d9316e27
commit
c798707c79
2 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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<r_refdef.areabytes; i++)
|
||||
r_refdef.areabits[i] = MSG_ReadByte();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue