diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 21:13:02 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 21:13:02 +0100 |
commit | 60f10c242fc4f99b0ab0f8d8c6d4b4acde0022cd (patch) | |
tree | 2a3f33bb7af2bf88998a5337e1a739ea12712519 /src/npc.cpp | |
parent | 712ca58c011123505c807266dcc8d9d84ca1aa44 (diff) | |
download | mana-60f10c242fc4f99b0ab0f8d8c6d4b4acde0022cd.tar.gz mana-60f10c242fc4f99b0ab0f8d8c6d4b4acde0022cd.tar.bz2 mana-60f10c242fc4f99b0ab0f8d8c6d4b4acde0022cd.tar.xz mana-60f10c242fc4f99b0ab0f8d8c6d4b4acde0022cd.zip |
Clean up of most of the Network pointers
Now that messages can be sent without requiring a pointer to the
Network instance, a lot of cleanup was possible.
Diffstat (limited to 'src/npc.cpp')
-rw-r--r-- | src/npc.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/npc.cpp b/src/npc.cpp index 98c3e0eb..359546e2 100644 --- a/src/npc.cpp +++ b/src/npc.cpp @@ -40,14 +40,8 @@ bool NPC::isTalking = false; int current_npc = 0; -#ifdef TMWSERV_SUPPORT NPC::NPC(int id, int job, Map *map): Player(id, job, map) -#else -NPC::NPC(int id, int job, Map *map, Network *network): - Player(id, job, map), - mNetwork(network) -#endif { NPCInfo info = NPCDB::get(job); @@ -126,9 +120,6 @@ void NPC::talk() #ifdef TMWSERV_SUPPORT Net::GameServer::Player::talkToNPC(mId, true); #else - if (!mNetwork) - return; - MessageOut outMsg(CMSG_NPC_TALK); outMsg.writeInt32(mId); outMsg.writeInt8(0); |