Added a check for multiple connected sessions to avoid moving disconnected object more than once. Resolves issue 145.

This commit is contained in:
Griatch 2011-03-19 22:17:00 +00:00
parent 8288534cf6
commit 2f78bacd97
6 changed files with 26 additions and 19 deletions

View file

@ -55,7 +55,7 @@ class Object(TypeClass):
if create_cmdset:
dbobj.cmdset = CmdSetHandler(dbobj)
if utils.inherits_from(self, settings.BASE_CHARACTER_TYPECLASS):
if utils.inherits_from(self, settings.BASE_CHARACTER_TYPECLASS) or utils.inherits_from(self, Character):
dbobj.cmdset.outside_access = False
if create_scripts:
dbobj.scripts = ScriptHandler(dbobj)