Fixed a bug where you could not choose the AI job.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1987 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
vageyenaman@gmail.com
2011-08-06 21:07:51 +00:00
parent 977ea89da9
commit d6c1fc48cb
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -499,6 +499,8 @@ datum/preferences
if ((job!="AI" || config.allow_ai) && !jobban_isbanned(user, job))
HTML += "<a href=\"byond://?src=\ref[user];preferences=1;occ=[occ];job=[job]\">[job]</a><br>"
if(!jobban_isbanned(user, "AI"))
HTML += "<a href=\"byond://?src=\ref[user];preferences=1;occ=[occ];job=AI\">AI</a><br>"
if(!jobban_isbanned(user, "Captain"))
HTML += "<a href=\"byond://?src=\ref[user];preferences=1;occ=[occ];job=Captain\">Captain</a><br>"
HTML += "<br>"
@@ -511,7 +513,7 @@ datum/preferences
return
proc/SetJob(mob/user, occ=1, job="Captain")
if ((!( occupations.Find(job) ) && !( assistant_occupations.Find(job) ) && job != "Captain"))
if ((!( occupations.Find(job) ) && !( assistant_occupations.Find(job) ) && (job != "Captain" && job != "AI")))
return
if (job=="AI" && (!config.allow_ai))
return