mob constructor converted to xyz_heading

This commit is contained in:
Arthur Ice
2014-11-30 18:57:50 -08:00
parent 708b4f3bfb
commit 6b1b083802
6 changed files with 10 additions and 40 deletions
+1 -7
View File
@@ -43,7 +43,7 @@ extern Zone* zone;
Beacon::Beacon(Mob *at_mob, int lifetime)
:Mob
(
nullptr, nullptr, 0, 0, 0, INVISIBLE_MAN, 0, BT_NoTarget, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
nullptr, nullptr, 0, 0, 0, INVISIBLE_MAN, 0, BT_NoTarget, 0, 0, 0, 0, 0, at_mob->GetPosition(), 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
),
remove_timer(lifetime),
@@ -57,12 +57,6 @@ Beacon::Beacon(Mob *at_mob, int lifetime)
spell_iterations = 0;
caster_id = 0;
// copy location
m_Position.m_X = at_mob->GetX();
m_Position.m_Y = at_mob->GetY();
m_Position.m_Z = at_mob->GetZ();
m_Position.m_Heading = at_mob->GetHeading();
if(lifetime)
{
remove_timer.Start();