chore: Code Cleanup (#1239)
This commit is contained in:
parent
4eee508358
commit
6426996f29
10 changed files with 6 additions and 15 deletions
|
|
@ -61,11 +61,7 @@ public static class IncomingTargetingPackets
|
|||
// User pressed escape
|
||||
t.Cancel(from, TargetCancelType.Canceled);
|
||||
}
|
||||
else if (t.TargetID != targetID)
|
||||
{
|
||||
// Sanity, prevent fake target
|
||||
}
|
||||
else
|
||||
else if (t.TargetID == targetID)
|
||||
{
|
||||
object toTarget;
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,10 @@ public static class OutgoingTargetPackets
|
|||
public static void SendCancelTarget(this NetState ns) =>
|
||||
ns?.Send(stackalloc byte[]
|
||||
{
|
||||
0x6C, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
|
||||
0x6C, 0x0, 0x0, 0x0, 0x0,
|
||||
0x0, 0x3, 0x0, 0x0, 0x0,
|
||||
0x0, 0x0, 0x0, 0x0, 0x0,
|
||||
0x0, 0x0, 0x0, 0x0
|
||||
});
|
||||
|
||||
public static void SendTargetReq(this NetState ns, Target t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue