Changeset 300 for trunk


Ignore:
Timestamp:
10/02/09 17:19:15 (10 years ago)
Author:
orlandov
Message:

Patch by or1andov:

  • Only if specified should the npc_avatar callback be called.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/scripts/dialogue.py

    r290 r300  
    6262        self.section_stack = [] 
    6363 
    64         self.callbacks['npc_avatar'](self.state, self.tree['AVATAR']) 
     64        npc_avatar_cb = self.callbacks.get('npc_avatar') 
     65        if npc_avatar_cb: 
     66            npc_avatar_cb(self.state, self.tree['AVATAR']) 
    6567 
    6668        try: 
Note: See TracChangeset for help on using the changeset viewer.