Mercurial > parpg-source
changeset 82:e864b704dd59
The Examine action in the context menu will now only be shown when the Entity actually has a description text.
author | KarstenBock@gmx.net |
---|---|
date | Fri, 23 Sep 2011 14:24:22 +0200 |
parents | 28561412c7e7 |
children | 43e7a8d94446 |
files | gamescenecontroller.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gamescenecontroller.py Fri Sep 23 14:18:42 2011 +0200 +++ b/gamescenecontroller.py Fri Sep 23 14:24:22 2011 +0200 @@ -439,7 +439,7 @@ actions.append(["Talk", "Talk", self.initTalk, obj]) if obj.characterstats and not is_player: actions.append(["Attack", "Attack", self.nullFunc, obj]) - if obj.description: + if obj.description and obj.description.desc: actions.append(["Examine", "Examine", player.fifeagent.behaviour.approach, [obj_pos.x, obj_pos.y],