mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
[Add] Random Spawn Event Location (#953)
* location located * Update Content.Server/StationEvents/Components/RandomSpawnRuleComponent.cs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com> * fix --------- Co-authored-by: vanx <vanxxxx@discord> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Spatison <137375981+Spatison@users.noreply.github.com>
This commit is contained in:
@@ -441,7 +441,7 @@ public sealed partial class NavMapSystem : SharedNavMapSystem
|
||||
|
||||
// get the angle between the two positions, adjusted for the grid rotation so that
|
||||
// we properly preserve north in relation to the grid.
|
||||
var dir = (pos.Value.Position - coordinates.Position).ToWorldAngle();
|
||||
var dir = (coordinates.Position - pos.Value.Position).ToWorldAngle(); // White Dream fix
|
||||
var adjustedDir = (dir - gridOffset).GetDir();
|
||||
|
||||
var length = (pos.Value.Position - coordinates.Position).Length();
|
||||
|
||||
Reference in New Issue
Block a user