mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 00:27:16 +00:00
NPC constructor converted to use xyz_heading
This commit is contained in:
1 parent
0570722b3b
commit
54bc1b06e4
16 files changed
+96
-92
No files matched your search
+1
-1
@@ -2489,7 +2489,7 @@ void command_npctypespawn(Client *c, const Seperator *sep)
|
||||
const NPCType* tmp = 0;
|
||||
if ((tmp = database.GetNPCType(atoi(sep->arg[1])))) {
|
||||
//tmp->fixedZ = 1;
|
||||
NPC* npc = new NPC(tmp, 0, c->GetX(), c->GetY(), c->GetZ(), c->GetHeading(), FlyMode3);
|
||||
NPC* npc = new NPC(tmp, 0, c->GetPosition(), FlyMode3);
|
||||
if (npc && sep->IsNumber(2))
|
||||
npc->SetNPCFactionID(atoi(sep->arg[2]));
|
||||
|
||||
|
||||
Reference in new issue
Block a user