From a9fc0e4a3b9c53350eb61cb1082789f98eed9938 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 17 Jun 2025 17:59:23 +0200 Subject: [PATCH] typo --- doc/lua_api.md | 4 ++-- src/client/camera.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/lua_api.md b/doc/lua_api.md index c24f63e5f..af716c4b6 100644 --- a/doc/lua_api.md +++ b/doc/lua_api.md @@ -9516,14 +9516,14 @@ Player properties need to be saved manually. -- `false` will cause the background to be set automatically based on user settings. -- Default: false - nametag_fontsize = false, + nametag_fontsize = 1, -- Sets the font size of the nametag in pixels. -- `false` will cause the size to be set automatically based on user settings. -- Default: false nametag_scale_z = false, -- If enabled, the nametag will be scaled by Z in screen space, meaning it becomes - -- smaller the further way the object is. + -- smaller the further away the object is. -- Default: false infotext = "", diff --git a/src/client/camera.cpp b/src/client/camera.cpp index 19b09dec5..376806373 100644 --- a/src/client/camera.cpp +++ b/src/client/camera.cpp @@ -659,7 +659,7 @@ void Camera::drawNametags() // scaling (draw to RTT first?). { // Because the current approach puts a high load on the font engine - // we quantize the font size and set and arbitrary maximum... + // we quantize the font size and set an arbitrary maximum... font_size = MYMIN(font_size, 256); if (font_size > 128) font_size &= ~(1|2|4);