Made DEFALT_HOME a fallback for a missing START_LOCATION in unloggedin-create.

This commit is contained in:
Griatch 2014-04-26 05:46:52 +02:00
parent 4e7bfb95b5
commit 0cae40f41a

View file

@ -190,7 +190,10 @@ class CmdUnconnectedCreate(MuxCommand):
if MULTISESSION_MODE < 2:
# 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)
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,
location=start_location, home=default_home,
permissions=permissions)