--- deliantra/server/ext/login.ext 2006/12/22 16:34:00 1.1 +++ deliantra/server/ext/login.ext 2006/12/23 03:38:43 1.2 @@ -207,6 +207,7 @@ "Now choose a character.\nPress any key to change outlook.\nPress `d' when you're pleased.\n"); $ns->state (cf::ST_CHANGE_CLASS); + $pl->enable_save (1);#d# too early last; } @@ -220,8 +221,6 @@ return cf::override 0 unless $ob->type == cf::PLAYER; - my $ns = $ob->contr->ns; - # update respawn position $ob->contr->savebed ($bed->map->path, $bed->x, $bed->y); @@ -232,10 +231,10 @@ $ob->reply (undef, "In the future, you will wake up here when you die."); $ob->contr->save (); - $ns->query (cf::CS_QUERY_SINGLECHAR, "Do you want to continue playing (y/n)?", sub { + $ob->contr->ns->query (cf::CS_QUERY_SINGLECHAR, "Do you want to continue playing (y/n)?", sub { if ($_[0] !~ /^[yY]/) { $ob->contr->save (1); - $ns->destroy (); + $ob->contr->ns->destroy (); } }); },