Skip to content

Commit 46c2742

Browse files
committed
fix rotation parsing
1 parent 8019d94 commit 46c2742

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

TarkovMonitor/GameWatcher.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,7 @@ private void ScreenshotWatcher_Created(object sender, FileSystemEventArgs e)
210210
return;
211211
}
212212

213-
DebugMessage?.Invoke(this, new($"rx: {position.Groups["rx"].Value}, ry: {position.Groups["ry"].Value}, rz: {position.Groups["rz"].Value}, rw: {position.Groups["rw"].Value}"));
214-
var rotation = QuarternionsToYaw(float.Parse(position.Groups["rx"].Value), float.Parse(position.Groups["ry"].Value), float.Parse(position.Groups["rz"].Value), float.Parse(position.Groups["rw"].Value));
213+
var rotation = QuarternionsToYaw(float.Parse(position.Groups["rx"].Value, CultureInfo.InvariantCulture), float.Parse(position.Groups["ry"].Value, CultureInfo.InvariantCulture), float.Parse(position.Groups["rz"].Value, CultureInfo.InvariantCulture), float.Parse(position.Groups["rw"].Value, CultureInfo.InvariantCulture));
215214
PlayerPosition?.Invoke(this, new(raid, CurrentProfile, new Position(position.Groups["x"].Value, position.Groups["y"].Value, position.Groups["z"].Value), rotation, filename));
216215
raid.Screenshots.Add(filename);
217216
} catch (Exception ex)

0 commit comments

Comments
 (0)