cleanup: Fixes bugs and cleans up code (#660)
This commit is contained in:
parent
1de0b656a9
commit
679e8100f4
99 changed files with 160 additions and 346 deletions
|
|
@ -42,24 +42,7 @@ namespace Server.Spells.Sixth
|
|||
var rx = (dx - dy) * 44;
|
||||
var ry = (dx + dy) * 44;
|
||||
|
||||
bool eastToWest;
|
||||
|
||||
if (rx >= 0 && ry >= 0)
|
||||
{
|
||||
eastToWest = false;
|
||||
}
|
||||
else if (rx >= 0)
|
||||
{
|
||||
eastToWest = true;
|
||||
}
|
||||
else if (ry >= 0)
|
||||
{
|
||||
eastToWest = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
eastToWest = false;
|
||||
}
|
||||
bool eastToWest = rx == 0 && ry >= 0 || rx >= 0 && ry == 0;
|
||||
|
||||
Effects.PlaySound(new Point3D(p), Caster.Map, 0x20B);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue