Login/out Callbacks zusammenfassen
Beim Login/Logout/Ende Callbacks an andere Objekte
in einer Funktion zusammenfassen, damit der Kram
einfacher zu finden ist und nicht mehr an verschiedenen
Stellen steht.
Change-Id: I0d39877f1c45bd9405ef51ebc7803aad7c0bd7ad
diff --git a/secure/login.c b/secure/login.c
index c57eeba..8eee5f3 100644
--- a/secure/login.c
+++ b/secure/login.c
@@ -869,10 +869,8 @@
if ( interactive(ob) )
{
- /* The other object is still interactive; reconnect that "soul"
- to a dummy object and destruct that, thus disconnecting the
- other probably linkdead user. The real "body" is still
- there for reconnecting by login.c */
+ // The other object is still interactive; disconnect it first
+ // and attach our connection to the player object.
remove_interactive(ob);
was_interactive = 1;
}