mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Runtime fix for null.occupations undefined var
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5200 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -210,10 +210,12 @@ datum/preferences
|
|||||||
user << browse(dat, "window=preferences;size=560x560")
|
user << browse(dat, "window=preferences;size=560x560")
|
||||||
|
|
||||||
proc/SetChoices(mob/user, limit = 17, list/splitJobs = list("Chief Engineer"), width = 550, height = 500)
|
proc/SetChoices(mob/user, limit = 17, list/splitJobs = list("Chief Engineer"), width = 550, height = 500)
|
||||||
//limit - The amount of jobs allowed per column. Defaults to 17 to make it look nice.
|
if(!job_master) return
|
||||||
//splitJobs - Allows you split the table by job. You can make different tables for each department by including their heads. Defaults to CE to make it look nice.
|
|
||||||
//width - Screen' width. Defaults to 550 to make it look nice.
|
//limit - The amount of jobs allowed per column. Defaults to 17 to make it look nice.
|
||||||
//height - Screen's height. Defaults to 500 to make it look nice.
|
//splitJobs - Allows you split the table by job. You can make different tables for each department by including their heads. Defaults to CE to make it look nice.
|
||||||
|
//width - Screen' width. Defaults to 550 to make it look nice.
|
||||||
|
//height - Screen's height. Defaults to 500 to make it look nice.
|
||||||
|
|
||||||
|
|
||||||
var/HTML = "<body>"
|
var/HTML = "<body>"
|
||||||
|
|||||||
@@ -88,6 +88,7 @@
|
|||||||
if(!fexists(path)) return 0
|
if(!fexists(path)) return 0
|
||||||
var/savefile/S = new /savefile(path)
|
var/savefile/S = new /savefile(path)
|
||||||
if(!S) return 0
|
if(!S) return 0
|
||||||
|
S.cd = "/"
|
||||||
if(!slot) slot = default_slot
|
if(!slot) slot = default_slot
|
||||||
slot = sanitize_integer(slot, 1, MAX_SAVE_SLOTS, initial(default_slot))
|
slot = sanitize_integer(slot, 1, MAX_SAVE_SLOTS, initial(default_slot))
|
||||||
if(slot != default_slot)
|
if(slot != default_slot)
|
||||||
|
|||||||
Reference in New Issue
Block a user