Merge pull request #369 from Pan7/fixstvef

Fix compiler warning with extra clamps for stvef
This commit is contained in:
Timothee "TTimo" Besset 2016-08-20 15:54:05 -06:00 committed by GitHub
commit 4c1897ce2b

View file

@ -382,8 +382,8 @@ void Eclass_Init(){
if ( !strcmp( ValueForKey( g_qeglobals.d_project_entity, "gamemode" ), "sp" ) ) {
// SP mapping, ignore mp_*.def
char *name = (char *)pFile->data;
if ( name[0] == 'm' && name[1] == 'p' && name[2] == '_'
|| name[0] == 'h' && name[1] == 'm' && name[2] == '_' ) {
if ( ( name[0] == 'm' && name[1] == 'p' && name[2] == '_' )
|| ( name[0] == 'h' && name[1] == 'm' && name[2] == '_' ) ) {
Sys_Printf( "Single Player mapping mode. Ignoring '%s'\n", name );
pFile = pFile->next;
continue;