Disable talking while the NPC is animated.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13345 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2010-05-30 14:28:30 +00:00
parent 1ab27daf16
commit 27e16a4a78
1 changed files with 4 additions and 0 deletions

View File

@ -206,6 +206,10 @@ class Dialog:
# some variable substitution is done on the message here, $me and $you # some variable substitution is done on the message here, $me and $you
# are replaced by the names of the npc and the player respectively # are replaced by the names of the npc and the player respectively
def speak(self, msg): def speak(self, msg):
# query the animation system in case the NPC is playing an animation
if self.__speaker.Event(self.__speaker, self.__speaker, "", 1):
return 0
key = self.uniqueKey() key = self.uniqueKey()
replies = None replies = None
if Crossfire.GetPrivateDictionary().has_key(key): if Crossfire.GetPrivateDictionary().has_key(key):