1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Disallow formspec debug if the player does not have the debug privilege (#14753)

This commit is contained in:
l-koehler 2024-06-17 13:59:49 +00:00 committed by GitHub
parent fac9aac821
commit fe6da3a16b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 2 deletions

View file

@ -223,6 +223,11 @@ public:
m_allowclose = value;
}
void setDebugView(bool value)
{
m_show_debug = value;
}
void lockSize(bool lock,v2u32 basescreensize=v2u32(0,0))
{
m_lock = lock;