diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-08-20 17:02:22 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-08-20 17:02:22 +0000 |
commit | 78694280a4f23844adbc4c95daa8107c67704567 (patch) | |
tree | 9bbb4e419e05972242751f87e0ad658945371b88 /source/cmodel.c | |
parent | 780c4641248192226f1f1ae2bf6d2deb53e70051 (diff) |
Allow local MVD recordings span multiple levels, whose maximum
amount is controlled by `sv_mvd_max_levels' cvar.
Print a developer warning whenever PF_StartSound is called on
entity not currently in use.
MVD_ClearState now clears all edict_t and mvd_player_t fields.
Diffstat (limited to 'source/cmodel.c')
-rw-r--r-- | source/cmodel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/cmodel.c b/source/cmodel.c index de0c01c..d2bf424 100644 --- a/source/cmodel.c +++ b/source/cmodel.c @@ -911,12 +911,11 @@ void CM_FloodAreaConnections( cm_t *cm ) { floodnum++; FloodArea_r( cm, i, floodnum ); } - } void CM_SetAreaPortalState( cm_t *cm, int portalnum, qboolean open ) { - if( portalnum > cm->cache->numareaportals ) - Com_Error( ERR_DROP, "CM_SetAreaPortalState: areaportal > numareaportals" ); + if( portalnum >= cm->cache->numareaportals ) + Com_Error( ERR_DROP, "%s: areaportal > numareaportals", __func__ ); cm->portalopen[portalnum] = open; CM_FloodAreaConnections( cm ); @@ -935,7 +934,7 @@ qboolean CM_AreasConnected( cm_t *cm, int area1, int area2 ) { return qfalse; } if( area1 >= cache->numareas || area2 >= cache->numareas ) { - Com_Error( ERR_DROP, "CM_AreasConnected: area > numareas" ); + Com_Error( ERR_DROP, "%s: area > numareas", __func__ ); } if( cm->floodnums[area1] == cm->floodnums[area2] ) { return qtrue; |