Added negative X/Z limits that I forgot.

This commit is contained in:
eh-K 2026-03-06 18:45:09 -06:00 committed by GitHub
parent e69b3ec864
commit 778ed7a023
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -96,7 +96,7 @@ void UIScene_DebugSetCamera::onDirectEditFinished(UIControl_TextInput *input, UI
{ {
currentPosition->m_camX = val; currentPosition->m_camX = val;
if (val > 30000000) currentPosition->m_camX = 30000000; if (val > 30000000) currentPosition->m_camX = 30000000;
if (val < -30000000) currentPosition->m_camX = -30000000;
} }
else if (input == &m_textInputY) else if (input == &m_textInputY)
{ {
@ -109,6 +109,7 @@ else if (input == &m_textInputZ)
{ {
currentPosition->m_camZ = val; currentPosition->m_camZ = val;
if (val > 30000000) currentPosition->m_camZ = 30000000; if (val > 30000000) currentPosition->m_camZ = 30000000;
if (val < -30000000) currentPosition->m_camZ = -30000000;
} }
else if (input == &m_textInputYRot) else if (input == &m_textInputYRot)
{ {