mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
implement tp to wagon from ranch
This commit is contained in:
parent
9f3ebaa256
commit
a20656a9aa
3 changed files with 34 additions and 11 deletions
|
@ -33,7 +33,7 @@ namespace HISP.Server
|
|||
|
||||
public static Double PointsToDistance(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
return Math.Sqrt(Math.Pow(x1 - (-y1), 2) + Math.Pow(x2 - (-y2), 2));
|
||||
return Math.Sqrt(Math.Pow((x2 - x1), 2) + Math.Pow((y2 - y1), 2));
|
||||
}
|
||||
|
||||
public static DateTime UnixTimeStampToDateTime(double unixTimeStamp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue