Don't use CV_StealthSetValue on cv_itemfinder if running the game in dedicated mode

This commit is contained in:
Monster Iestyn 2018-04-15 19:59:57 +01:00
parent 7848e9f42b
commit 3fb12cf337
1 changed files with 2 additions and 1 deletions

View File

@ -3588,7 +3588,8 @@ void G_InitNew(UINT8 pultmode, const char *mapname, boolean resetplayer, boolean
unlocktriggers = 0;
// clear itemfinder, just in case
CV_StealthSetValue(&cv_itemfinder, 0);
if (!dedicated) // except in dedicated servers, where it is not registered and can actually I_Error debug builds
CV_StealthSetValue(&cv_itemfinder, 0);
}
// internal game map