diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-01 14:48:08 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-01 14:48:08 -0600 |
commit | a48c48ab6d245697928f8ddb64e9da0a2ab5da1b (patch) | |
tree | c0629f6fcb27efb7546e811a1abbbfacaefc6e6d /src/net/ea/beinghandler.cpp | |
parent | 90ab21c3fad071145bf84bafa55be8a13be9f2e6 (diff) | |
download | mana-a48c48ab6d245697928f8ddb64e9da0a2ab5da1b.tar.gz mana-a48c48ab6d245697928f8ddb64e9da0a2ab5da1b.tar.bz2 mana-a48c48ab6d245697928f8ddb64e9da0a2ab5da1b.tar.xz mana-a48c48ab6d245697928f8ddb64e9da0a2ab5da1b.zip |
Fix "unnamed" monsters
Diffstat (limited to 'src/net/ea/beinghandler.cpp')
-rw-r--r-- | src/net/ea/beinghandler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/ea/beinghandler.cpp b/src/net/ea/beinghandler.cpp index 0ad15d7d..7fc28f15 100644 --- a/src/net/ea/beinghandler.cpp +++ b/src/net/ea/beinghandler.cpp @@ -134,7 +134,9 @@ void BeingHandler::handleMessage(MessageIn &msg) dstBeing = createBeing(id, job); } - else if (dstBeing->getType() == Being::MONSTER) + + // Fix monster jobs + if (dstBeing->getType() == Being::MONSTER) { job -= 1002; } @@ -430,7 +432,9 @@ void BeingHandler::handleMessage(MessageIn &msg) { dstBeing = createBeing(id, job); } - else if (dstBeing->getType() == Being::MONSTER) + + // Fix monster jobs + if (dstBeing->getType() == Being::MONSTER) { job -= 1002; } |