summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorMatthias Hartmann <hartmann.matthias@gmail.com>2005-09-17 14:05:31 +0000
committerMatthias Hartmann <hartmann.matthias@gmail.com>2005-09-17 14:05:31 +0000
commit02e54bb74d2032abfbbdb17dc14d8d85664deb40 (patch)
tree6eae3e92eb3b621392b8e3e0f652ed627eb003ee /src/game.cpp
parente846d4502b59a1a3b8d658a37ae5b5ce4aa1c00c (diff)
downloadmana-02e54bb74d2032abfbbdb17dc14d8d85664deb40.tar.gz
mana-02e54bb74d2032abfbbdb17dc14d8d85664deb40.tar.bz2
mana-02e54bb74d2032abfbbdb17dc14d8d85664deb40.tar.xz
mana-02e54bb74d2032abfbbdb17dc14d8d85664deb40.zip
I already know my own name...and i dont want to trade with myself.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 4616e811..31b82b67 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -667,11 +667,13 @@ void do_input()
// Player default: trade
case Being::PLAYER:
{
+ if (target != player_node) {
MessageOut outMsg;
outMsg.writeShort(0x00e4);
outMsg.writeLong(target->getId());
writeSet(6);
tradePartnerName = target->getName();
+ }
}
break;