pioneerspacesim / pioneer

A game of lonely space adventure
https://pioneerspacesim.net
1.58k stars 364 forks source link

Fix incorrect position of starports #5793

Closed Web-eWorks closed 2 months ago

Web-eWorks commented 2 months ago

This PR addresses a platform-specific issue where on Windows a fixed-point fractional part greater than 0.5 was being silently truncated when loaded from JSON files. This is most likely the cause for starport positions to be completely incorrect on Windows specifically.

This PR also addresses the log warnings about negative inclination values coming from legacy Lua-based systems until such a time as we convert all such systems to JSON.

Fixes #5792, fixes #5744.