summaryrefslogtreecommitdiff
path: root/src/beingmanager.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-03 17:00:07 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-12-03 17:00:07 +0000
commit061b9e817ffe73acca163510b276e6ca7dd8f6c2 (patch)
treec1488381a9a62520f94cdb353bd5bd12ebc1b699 /src/beingmanager.cpp
parent092bf185fc056338bcde2749a304e576edf342fd (diff)
downloadmana-061b9e817ffe73acca163510b276e6ca7dd8f6c2.tar.gz
mana-061b9e817ffe73acca163510b276e6ca7dd8f6c2.tar.bz2
mana-061b9e817ffe73acca163510b276e6ca7dd8f6c2.tar.xz
mana-061b9e817ffe73acca163510b276e6ca7dd8f6c2.zip
Made NPC names visible. Windows are now invisible by default.
Diffstat (limited to 'src/beingmanager.cpp')
-rw-r--r--src/beingmanager.cpp13
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;