aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/XUI/XUI_DebugSetCamera.cpp
diff options
context:
space:
mode:
authorqwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com>2026-03-05 17:17:45 -0600
committerGitHub <noreply@github.com>2026-03-05 17:17:45 -0600
commit0666959d312dc74903f55d1071488a90239330f1 (patch)
tree5c6886f7ec65a7828bc6e34a469514e418bcf78b /Minecraft.Client/Common/XUI/XUI_DebugSetCamera.cpp
parent9370cbc7d878df1615d8ce76bc459e8b414d0f19 (diff)
parenteed770b121aa4ce38f002db042d0137c24c6d344 (diff)
Merge branch 'smartcmd:main' into main
Diffstat (limited to 'Minecraft.Client/Common/XUI/XUI_DebugSetCamera.cpp')
-rw-r--r--Minecraft.Client/Common/XUI/XUI_DebugSetCamera.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Minecraft.Client/Common/XUI/XUI_DebugSetCamera.cpp b/Minecraft.Client/Common/XUI/XUI_DebugSetCamera.cpp
index 2227e895..f6335191 100644
--- a/Minecraft.Client/Common/XUI/XUI_DebugSetCamera.cpp
+++ b/Minecraft.Client/Common/XUI/XUI_DebugSetCamera.cpp
@@ -23,7 +23,7 @@ HRESULT CScene_DebugSetCamera::OnInit( XUIMessageInit *pInitData, BOOL &bHandled
currentPosition = new DebugSetCameraPosition();
currentPosition->player = playerNo;
-
+
Minecraft *pMinecraft = Minecraft::GetInstance();
if (pMinecraft != NULL)
{
@@ -43,13 +43,13 @@ HRESULT CScene_DebugSetCamera::OnInit( XUIMessageInit *pInitData, BOOL &bHandled
m_yRot.SetKeyboardType(C_4JInput::EKeyboardMode_Full);
m_elevation.SetKeyboardType(C_4JInput::EKeyboardMode_Full);
- m_camX.SetText((CONST WCHAR *) _toString<double>(currentPosition->m_camX).c_str());
- m_camY.SetText((CONST WCHAR *) _toString<double>(currentPosition->m_camY + 1.62).c_str());
- m_camZ.SetText((CONST WCHAR *) _toString<double>(currentPosition->m_camZ).c_str());
+ m_camX.SetText((CONST WCHAR *) std::to_wstring(currentPosition->m_camX).c_str());
+ m_camY.SetText((CONST WCHAR *) std::to_wstring(currentPosition->m_camY + 1.62).c_str());
+ m_camZ.SetText((CONST WCHAR *) std::to_wstring(currentPosition->m_camZ).c_str());
+
+ m_yRot.SetText((CONST WCHAR *) std::to_wstring(currentPosition->m_yRot).c_str());
+ m_elevation.SetText((CONST WCHAR *) std::to_wstring(currentPosition->m_elev).c_str());
- m_yRot.SetText((CONST WCHAR *) _toString<double>(currentPosition->m_yRot).c_str());
- m_elevation.SetText((CONST WCHAR *) _toString<double>(currentPosition->m_elev).c_str());
-
//fpp = new FreezePlayerParam();
//fpp->player = playerNo;
//fpp->freeze = true;
@@ -69,7 +69,7 @@ HRESULT CScene_DebugSetCamera::OnNotifyPressEx(HXUIOBJ hObjPressed, XUINotifyPre
if (hObjPressed == m_teleport)
{
app.SetXuiServerAction( ProfileManager.GetPrimaryPad(),
- eXuiServerAction_SetCameraLocation,
+ eXuiServerAction_SetCameraLocation,
(void *)currentPosition);
rfHandled = TRUE;
}