Created
January 11, 2014 05:08
-
-
Save MrBluePotato/8367359 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ((tempAttr = el.Attribute("prop-hunt")) != null) | |
{ | |
bool isPropHunt; | |
if (Boolean.TryParse(tempAttr.Value, out isPropHunt)) | |
{ | |
world.IsPropHunt = isPropHunt; | |
PropHuntWorlds.Add(world); | |
} | |
else | |
{ | |
Logger.Log(LogType.Warning, | |
"WorldManager: Could not parse \"prop-hunt\" attribute of world \"{0}\", assuming NOT playable for PropHunt.", | |
worldName); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment