mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
F5 debug info: Use full words for NSEW directions for readability (#7461)
This commit is contained in:
parent
d77f3b3fde
commit
b982e45456
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue