Skip to content

Commit

Permalink
Merge pull request #1 from Marc-Antoine-Leconte/patch-1
Browse files Browse the repository at this point in the history
Update MapEvent.cs
  • Loading branch information
Benoit Julien authored Dec 19, 2018
2 parents b68d779 + fa7736c commit e088472
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PralineServer/Server/Room/MapEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public RadiusDescription(float startRadius, float endRadius, uint duration) {
public MyNetworkServer<Player.InGamePlayer> Server;

private static readonly Dictionary<int, RadiusDescription> RadiusZone = new Dictionary<int, RadiusDescription> {
{1, new RadiusDescription(800, 400, 60)},
{2, new RadiusDescription(400, 100, 60)}
{1, new RadiusDescription(400, 200, 60)},
{2, new RadiusDescription(200, 50, 60)}
};

private List<Event> _events;
Expand Down Expand Up @@ -91,7 +91,7 @@ public void Stop() {
}

public bool CheckPlayerInPlasma(Vector3 pos) {
return pos.magnitude >= _currentZoneRadius;
return (new Vector3(pos.x, 0, pos.z)).magnitude >= _currentZoneRadius;
}

private void TrainFunction() {
Expand Down Expand Up @@ -173,4 +173,4 @@ private void StartingPlasmaZone() {
_plasmaThread.Start();
}
}
}
}

0 comments on commit e088472

Please sign in to comment.