Makes the number of load/storable character slots a configurable value.

This commit is contained in:
PsiOmega
2014-10-14 10:05:22 +02:00
parent 7a6722bc31
commit 322e03dd06
4 changed files with 11 additions and 5 deletions

View File

@@ -20,8 +20,6 @@ var/global/list/special_roles = list( //keep synced with the defines BE_* in set
"mutineer" = IS_MODE_COMPILED("mutiny"), // 13
)
var/const/MAX_SAVE_SLOTS = 10
//used for alternate_option
#define GET_RANDOM_JOB 0
#define BE_ASSISTANT 1
@@ -1622,7 +1620,7 @@ datum/preferences
if(S)
dat += "<b>Select a character slot to load</b><hr>"
var/name
for(var/i=1, i<=MAX_SAVE_SLOTS, i++)
for(var/i=1, i<= config.character_slots, i++)
S.cd = "/character[i]"
S["real_name"] >> name
if(!name) name = "Character[i]"