mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 13:16:39 +00:00
[Bug Fix] Fix #goto Target (#4382)
This commit is contained in:
@@ -4,7 +4,7 @@ void command_goto(Client *c, const Seperator *sep)
|
|||||||
{
|
{
|
||||||
const uint16 arguments = sep->argnum;
|
const uint16 arguments = sep->argnum;
|
||||||
|
|
||||||
const bool goto_player = !sep->IsNumber(1) && sep->arg[1];
|
const bool goto_player = arguments > 0 && !sep->IsNumber(1);
|
||||||
const bool goto_position = sep->IsNumber(1) && sep->IsNumber(2) && sep->IsNumber(3);
|
const bool goto_position = sep->IsNumber(1) && sep->IsNumber(2) && sep->IsNumber(3);
|
||||||
const bool goto_target = !arguments && c->GetTarget();
|
const bool goto_target = !arguments && c->GetTarget();
|
||||||
|
|
||||||
@@ -78,6 +78,14 @@ void command_goto(Client *c, const Seperator *sep)
|
|||||||
t->GetZ(),
|
t->GetZ(),
|
||||||
t->GetHeading()
|
t->GetHeading()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
c->Message(
|
||||||
|
Chat::White,
|
||||||
|
fmt::format(
|
||||||
|
"Going to {} in the same zone.",
|
||||||
|
c->GetTargetDescription(t)
|
||||||
|
).c_str()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user