Merge pull request #607 from Carn/AdminOOCfix

Resolves an issue with sanitize_hexcolor - It now has an optional defaul...
This commit is contained in:
Pete Goodfellow
2013-05-28 16:18:40 -07:00
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car
update_preferences(needs_update) //needs_update = savefile_version if we need an update (positive integer)
//Sanitize
ooccolor = sanitize_hexcolor(ooccolor, initial(ooccolor))
ooccolor = sanitize_hexcolor(ooccolor, 6, 1, initial(ooccolor))
lastchangelog = sanitize_text(lastchangelog, initial(lastchangelog))
UI_style = sanitize_inlist(UI_style, list("Midnight", "Plasmafire", "Retro"), initial(UI_style))
be_special = sanitize_integer(be_special, 0, 65535, initial(be_special))