Resolved issue99, which concerned commands on adjacent players being erroneously included among a player's available commands (giving multiple-command errors).

This commit is contained in:
Griatch 2010-09-03 19:33:17 +00:00
parent 35bb9444a1
commit e2f92f0bfe
3 changed files with 6 additions and 13 deletions

View file

@ -113,7 +113,11 @@ def get_and_merge_cmdsets(caller):
local_objlist = location.contents
local_objects_cmdsets = [obj.cmdset.current
for obj in local_objlist
if obj.cmdset.allow_outside_access(caller)]
if obj.cmdset.outside_access]
# print "used objs: %s" % ([obj.name
# for obj in local_objlist
# if obj.cmdset.outside_access])
# Merge all command sets into one
# (the order matters, the higher-prio cmdsets are merged last)
cmdset = caller_cmdset