summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 21:13:02 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-27 21:13:02 +0100
commit60f10c242fc4f99b0ab0f8d8c6d4b4acde0022cd (patch)
tree2a3f33bb7af2bf88998a5337e1a739ea12712519 /src/beingmanager.cpp
parent712ca58c011123505c807266dcc8d9d84ca1aa44 (diff)
downloadmana-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/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/beingmanager.cpp b/src/beingmanager.cpp
index ae9ee787..9c671808 100644
--- a/src/beingmanager.cpp
+++ b/src/beingmanager.cpp
@@ -59,12 +59,9 @@ class FindBeingFunctor
Being::Type type;
} beingFinder;
-#ifdef EATHENA_SUPPORT
-BeingManager::BeingManager(Network *network):
- mNetwork(network)
+BeingManager::BeingManager()
{
}
-#endif
BeingManager::~BeingManager()
{
@@ -111,7 +108,7 @@ Being *BeingManager::createBeing(int id, Uint16 job)
if (job <= 25 || (job >= 4001 && job <= 4049))
being = new Player(id, job, mMap);
else if (job >= 46 && job <= 1000)
- being = new NPC(id, job, mMap, mNetwork);
+ being = new NPC(id, job, mMap);
else if (job > 1000 && job <= 2000)
being = new Monster(id, job, mMap);
else