org_x, org_y, org_z, and org_heading converted to xyz_heading as m_SpawnPoint

This commit is contained in:
Arthur Ice
2014-11-30 13:51:57 -08:00
parent 82cc830297
commit 6ffd7203ff
3 changed files with 24 additions and 26 deletions
+3 -2
View File
@@ -1800,10 +1800,11 @@ void command_gassign(Client *c, const Seperator *sep)
{
if (sep->IsNumber(1) && c->GetTarget() && c->GetTarget()->IsNPC())
{
auto npcBind = c->GetTarget()->CastToNPC()->m_SpawnPoint;
database.AssignGrid(
c,
(c->GetTarget()->CastToNPC()->org_x),
(c->GetTarget()->CastToNPC()->org_y),
npcBind.m_X,
npcBind.m_Y,
atoi(sep->arg[1])
);
}