diff options
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r-- | src/beingmanager.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp index eea8c419..d3ac88f2 100644 --- a/src/beingmanager.cpp +++ b/src/beingmanager.cpp @@ -72,12 +72,7 @@ Being* BeingManager::createBeing(Uint32 id, Uint16 job) Being *being; if (job < 10) - { being = new Player(id, job, mMap); - MessageOut outMsg(mNetwork); - outMsg.writeInt16(0x0094); - outMsg.writeInt32(id);//readLong(2)); - } else if (job >= 100 & job < 200) being = new NPC(id, job, mMap, mNetwork); else if (job >= 1000 && job < 1200) @@ -85,6 +80,14 @@ Being* BeingManager::createBeing(Uint32 id, Uint16 job) else being = new Being(id, job, mMap); + // Player or NPC + if (job < 200) + { + MessageOut outMsg(mNetwork); + outMsg.writeInt16(0x0094); + outMsg.writeInt32(id);//readLong(2)); + } + mBeings.push_back(being); return being; |