summaryrefslogtreecommitdiff
path: root/source/cmodel.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/cmodel.c')
-rw-r--r--source/cmodel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/cmodel.c b/source/cmodel.c
index 1234a77..60ca284 100644
--- a/source/cmodel.c
+++ b/source/cmodel.c
@@ -58,11 +58,13 @@ CM_LoadMap
Loads in the map and all submodels
==================
*/
-qboolean CM_LoadMap( cm_t *cm, const char *name ) {
+qerror_t CM_LoadMap( cm_t *cm, const char *name ) {
bsp_t *cache;
+ qerror_t ret;
- if( !( cache = BSP_Load( name ) ) ) {
- return qfalse;
+ ret = BSP_Load( name, &cache );
+ if( !cache ) {
+ return ret;
}
cm->cache = cache;
@@ -71,7 +73,7 @@ qboolean CM_LoadMap( cm_t *cm, const char *name ) {
cm->portalopen = ( qboolean * )( cm->floodnums + cm->cache->numareas );
FloodAreaConnections( cm );
- return qtrue;
+ return Q_ERR_SUCCESS;
}
mnode_t *CM_NodeNum( cm_t *cm, int number ) {