mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
NPC constructor converted to use xyz_heading
This commit is contained in:
+3
-1
@@ -315,7 +315,9 @@ void Client::GoFish()
|
||||
if(npc_chance < MakeRandomInt(0, 99)) {
|
||||
const NPCType* tmp = database.GetNPCType(npc_id);
|
||||
if(tmp != nullptr) {
|
||||
NPC* npc = new NPC(tmp, nullptr, GetX()+3, GetY(), GetZ(), GetHeading(), FlyMode3);
|
||||
auto positionNPC = GetPosition();
|
||||
positionNPC.m_X = positionNPC.m_X + 3;
|
||||
NPC* npc = new NPC(tmp, nullptr, positionNPC, FlyMode3);
|
||||
npc->AddLootTable();
|
||||
|
||||
npc->AddToHateList(this, 1, 0, false); //no help yelling
|
||||
|
||||
Reference in New Issue
Block a user