mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
F5 debug info: Use full words for NSEW directions for readability (#7461)
This commit is contained in:
@@ -33,7 +33,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
|
||||
inline static const char *yawToDirectionString(int yaw)
|
||||
{
|
||||
static const char *direction[4] = {"N +Z", "W -X", "S -Z", "E +X"};
|
||||
static const char *direction[4] =
|
||||
{"North +Z", "West -X", "South -Z", "East +X"};
|
||||
|
||||
yaw = wrapDegrees_0_360(yaw);
|
||||
yaw = (yaw + 45) % 360 / 90;
|
||||
|
Reference in New Issue
Block a user