Checked at_init() due to reported issues of it not getting called. Couldn't find any problems, rather it was called too many times, so removed an unecessary call.

This commit is contained in:
Griatch 2011-09-15 01:18:53 +02:00
parent de9c2ec437
commit f1d743f14c
3 changed files with 6 additions and 6 deletions

View file

@ -53,8 +53,10 @@ class ServerSession(Session):
player = self.get_player()
character = self.get_character()
if player:
#print "sync: at_init() - player"
player.at_init()
if character:
#print "sync: at_init() - character"
character.at_init()
# start (persistent) scripts on this object
ScriptDB.objects.validate(obj=character)
@ -82,6 +84,7 @@ class ServerSession(Session):
self.user.save()
# player init
#print "at_init() - player"
player.at_init()
# Check if this is the first time the *player* logs in
@ -91,6 +94,7 @@ class ServerSession(Session):
player.at_pre_login()
character = player.character
#print "at_init() - character"
character.at_init()
if character:
# this player has a character. Check if it's the
@ -101,9 +105,6 @@ class ServerSession(Session):
# run character login hook
character.at_pre_login()
# this is always called first
player.at_init()
self.log(_('Logged in: %(self)s') % {'self': self})
# start (persistent) scripts on this object