Made DEFALT_HOME a fallback for a missing START_LOCATION in unloggedin-create.
This commit is contained in:
parent
4e7bfb95b5
commit
0cae40f41a
1 changed files with 4 additions and 1 deletions
|
|
@ -190,7 +190,10 @@ class CmdUnconnectedCreate(MuxCommand):
|
||||||
if MULTISESSION_MODE < 2:
|
if MULTISESSION_MODE < 2:
|
||||||
# if we only allow one character, create one with the same name as Player
|
# if we only allow one character, create one with the same name as Player
|
||||||
# (in mode 2, the character must be created manually once logging in)
|
# (in mode 2, the character must be created manually once logging in)
|
||||||
start_location = settings.START_LOCATION
|
start_location = ObjectDB.objects.get_id(settings.START_LOCATION)
|
||||||
|
if not start_location:
|
||||||
|
start_location = default_home # fallback
|
||||||
|
|
||||||
new_character = create.create_object(typeclass, key=playername,
|
new_character = create.create_object(typeclass, key=playername,
|
||||||
location=start_location, home=default_home,
|
location=start_location, home=default_home,
|
||||||
permissions=permissions)
|
permissions=permissions)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue