{
if(!(MapInfo_Map_supportedGametypes & pGametypeToSet))
{
- //error("Can't select the requested game type. This should never happen as the caller should prevent it!\n");
- return 0;
+ error("Can't select the requested game type. This should never happen as the caller should prevent it!\n");
//_MapInfo_Map_ApplyGametypeEx("", pGametypeToSet, MAPINFO_TYPE_DEATHMATCH);
//return;
}
return GTV_FORBIDDEN;
if ( autocvar_nextmap != "" )
- if ( !MapInfo_Get_ByName(autocvar_nextmap, FALSE, type) )
- return GTV_FORBIDDEN;
+ {
+ if ( !MapInfo_Get_ByName(autocvar_nextmap, FALSE, 0) )
+ return GTV_FORBIDDEN;
+ if (!(MapInfo_Map_supportedGametypes & type))
+ return GTV_FORBIDDEN;
+ }
return GTV_AVAILABLE;
}
Przemysław "atheros" Grzywacz
Robert "ai" Kuroto
The player with the unnecessarily long name
+Mattia "Melanosuchus" Basaglia
**Translators