mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Added negative X/Z limits that I forgot.
This commit is contained in:
parent
e69b3ec864
commit
778ed7a023
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue