Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Commit

Permalink
Removed 41 tiles from tp
Browse files Browse the repository at this point in the history
  • Loading branch information
DeathCradle committed Mar 4, 2015
1 parent f8f7a19 commit 9f215a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tdsm-core/Command/Commands.cs
Expand Up @@ -673,9 +673,10 @@ public void Teleport(ISender sender, ArgumentList args)
sender.Message(String.Format("Coordinates out of range of (0, {0}); (0, {1}).", Main.maxTilesX - 1, Main.maxTilesY - 1));
return;
}
const Int32 OutOfBoundsPadding = 41;

/*if (*/
subject.Teleport(x * 16f, y * 16f); //)
subject.Teleport((x - OutOfBoundsPadding) * 16f, (y - OutOfBoundsPadding) * 16f); //)
{
Tools.NotifyAllOps(string.Concat("Teleported ", subject.Name, " to ",
x, ":", y, ". [", sender.SenderName, "]"), true);
Expand Down

0 comments on commit 9f215a6

Please sign in to comment.