mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 19:51:29 +00:00
[Bug Fix] Fix #goto Target (#4382)
This commit is contained in:
parent
9614ea59ec
commit
1e57a0372f
@ -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()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user