From ecdd48ef4ac697f1672f65575df87f1b5bb7c4fa Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 11 Nov 2026 22:10:31 +0000 Subject: [PATCH] Decompile 2 functions in Source/Client/Mode/GameMode.cpp Batch #17373 by eAthena: 2 byte-identical, 0 confirmed by peer review. - fn_21342 CGameMode::ReloadScene: byte-identical - fn_21359 CGameMode::InitializeCamera: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/Client/Mode/GameMode.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Client/Mode/GameMode.cpp b/Source/Client/Mode/GameMode.cpp index 83f783a6f..1c2bceb08 100644 --- a/Source/Client/Mode/GameMode.cpp +++ b/Source/Client/Mode/GameMode.cpp @@ -5440,18 +5440,18 @@ float g_outdoorCameraDistance = 300.0f; // FUNCTION: fn_21359 void CGameMode::InitializeCamera() { { - const float x = this->scene->player->render.position.x; - const float y = this->scene->player->render.position.y; const float z = this->scene->player->render.position.z; + const float y = this->scene->player->render.position.y; + const float x = this->scene->player->render.position.x; CView* view = this->camera; view->camera.target[0] = x; view->camera.target[1] = y; view->camera.target[2] = z; } { - const float x = this->scene->player->render.position.x; - const float y = this->scene->player->render.position.y; const float z = this->scene->player->render.position.z; + const float y = this->scene->player->render.position.y; + const float x = this->scene->player->render.position.x; CView* view = this->camera; view->camera.desiredTarget[0] = x; view->camera.desiredTarget[1] = y; @@ -6754,9 +6754,9 @@ void CGameMode::ReloadScene() { g_weatherEffect.ResetEffect(); this->mousePointer = new CMousePointer(); this->scene->objects.push_back(this->mousePointer); - const float x = this->scene->player->render.position.x; - const float y = this->scene->player->render.position.y; const float z = this->scene->player->render.position.z; + const float y = this->scene->player->render.position.y; + const float x = this->scene->player->render.position.x; this->camera->camera.target[0] = x; this->camera->camera.target[1] = y; this->camera->camera.target[2] = z;