summaryrefslogtreecommitdiff
path: root/source/sv_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sv_init.c')
-rw-r--r--source/sv_init.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/sv_init.c b/source/sv_init.c
index e439c02..59e58ee 100644
--- a/source/sv_init.c
+++ b/source/sv_init.c
@@ -308,6 +308,7 @@ void SV_Map (const char *levelstring, qboolean restart) {
char expanded[MAX_QPATH];
char *ch;
cm_t cm;
+ qerror_t ret;
// skip the end-of-unit flag if necessary
if( *levelstring == '*' ) {
@@ -336,8 +337,9 @@ void SV_Map (const char *levelstring, qboolean restart) {
}
Q_concat( expanded, sizeof( expanded ), "maps/", level, ".bsp", NULL );
- if( !CM_LoadMap( &cm, expanded ) ) {
- Com_Printf( "Couldn't load %s: %s\n", expanded, BSP_GetError() );
+ ret = CM_LoadMap( &cm, expanded );
+ if( ret < 0 ) {
+ Com_Printf( "Couldn't load %s: %s\n", expanded, Q_ErrorString( ret ) );
return;
}