From ee63346c00d070e061f1bcebdbb711f7d63c2a4e Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 21 Jan 2017 18:34:29 +0100 Subject: [PATCH] [UIFeeder] Don't reset mapname --- src/Components/Modules/UIFeeder.cpp | 6 +++--- src/Game/Structs.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Modules/UIFeeder.cpp b/src/Components/Modules/UIFeeder.cpp index c328c219..44b96046 100644 --- a/src/Components/Modules/UIFeeder.cpp +++ b/src/Components/Modules/UIFeeder.cpp @@ -274,12 +274,12 @@ namespace Components Utils::Hook::Call(0x503B50)(mapname); } - void UIFeeder::DoubleClickMapFeeder(const char* dvar_name, const char* name) + void UIFeeder::DoubleClickMapFeeder(const char* /*dvar_name*/, const char* /*name*/) { - Dvar::Var(dvar_name).set(name); + //Game::Dvar_SetStringByName(dvar_name, name); // Party_SetDisplayMapName - Utils::Hook::Call(0x503B50)(name); + //Utils::Hook::Call(0x503B50)(name); Command::Execute("closemenu settings_map", false); } diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index fe4380f7..24396b7b 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -3550,7 +3550,7 @@ namespace Game }; #pragma pack(push, 1) - struct XFileHeader + struct XFileHeader { unsigned __int64 magic; unsigned int version;