Btw, I think it would all be better if we used const char* and Q_strstr
like this:
{
const char *mapName = STRING( gpGlobals->mapname );
if (Q_stristr("sf_", mapName)) // Classic SourceForts CTF
{
CreateGameRulesObject( "CSFCTFGamerules" );
}
else if (Q_stristr("cr_", mapName))) // Core Run map
{
CreateGameRulesObject( "CSFCRGamerules" );
}
and so on.
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders