From 921a292f5bd021cec9dba5fe4f2b05c1be8ec9b4 Mon Sep 17 00:00:00 2001 From: Uleat Date: Thu, 19 Feb 2015 21:56:14 -0500 Subject: [PATCH] Fix for new Titanium to UF client accounts not allowing character creation --- common/patches/sod.cpp | 2 +- common/patches/sof.cpp | 2 +- common/patches/titanium.cpp | 12 +++++++----- common/patches/uf.cpp | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/common/patches/sod.cpp b/common/patches/sod.cpp index a8b69556a..adf4ec06f 100644 --- a/common/patches/sod.cpp +++ b/common/patches/sod.cpp @@ -1918,7 +1918,7 @@ namespace SoD if (emu->CharCount == 0) { ALLOC_VAR_ENCODE(structs::CharacterSelect_Struct, sizeof(structs::CharacterSelect_Struct)); eq->CharCount = emu->CharCount; - eq->TotalChars = eq->TotalChars; + eq->TotalChars = emu->TotalChars; if (eq->TotalChars > consts::CHARACTER_CREATION_LIMIT) eq->TotalChars = consts::CHARACTER_CREATION_LIMIT; diff --git a/common/patches/sof.cpp b/common/patches/sof.cpp index e0b24b393..a7553e7f9 100644 --- a/common/patches/sof.cpp +++ b/common/patches/sof.cpp @@ -1577,7 +1577,7 @@ namespace SoF if (emu->CharCount == 0) { ALLOC_VAR_ENCODE(structs::CharacterSelect_Struct, sizeof(structs::CharacterSelect_Struct)); eq->CharCount = emu->CharCount; - eq->TotalChars = eq->TotalChars; + eq->TotalChars = emu->TotalChars; if (eq->TotalChars > consts::CHARACTER_CREATION_LIMIT) eq->TotalChars = consts::CHARACTER_CREATION_LIMIT; diff --git a/common/patches/titanium.cpp b/common/patches/titanium.cpp index efacfe980..b183acf4b 100644 --- a/common/patches/titanium.cpp +++ b/common/patches/titanium.cpp @@ -1192,12 +1192,12 @@ namespace Titanium } eq->SecondaryIDFile[char_index] = emu_cse->SecondaryIDFile; - eq->Unknown820[char_index] = 0xFF; + eq->Unknown820[char_index] = (uint8)0xFF; eq->Deity[char_index] = emu_cse->Deity; eq->GoHome[char_index] = emu_cse->GoHome; eq->Tutorial[char_index] = emu_cse->Tutorial; eq->Beard[char_index] = emu_cse->Beard; - eq->Unknown902[char_index] = 0xFF; + eq->Unknown902[char_index] = (uint8)0xFF; eq->PrimaryIDFile[char_index] = emu_cse->PrimaryIDFile; eq->HairColor[char_index] = emu_cse->HairColor; eq->Zone[char_index] = emu_cse->Zone; @@ -1229,18 +1229,20 @@ namespace Titanium } eq->SecondaryIDFile[char_index] = 0; - eq->Unknown820[char_index] = 0xFF; + eq->Unknown820[char_index] = (uint8)0xFF; eq->Deity[char_index] = 0; eq->GoHome[char_index] = 0; eq->Tutorial[char_index] = 0; eq->Beard[char_index] = 0; - eq->Unknown902[char_index] = 0xFF; + eq->Unknown902[char_index] = (uint8)0xFF; eq->PrimaryIDFile[char_index] = 0; eq->HairColor[char_index] = 0; eq->Zone[char_index] = 0; eq->Class[char_index] = 0; eq->Face[char_index] = 0; - //eq->Name[char_index][0] = '\0'; // Cleared above + + strncpy(eq->Name[char_index], "", 6); + eq->Gender[char_index] = 0; eq->EyeColor1[char_index] = 0; eq->EyeColor2[char_index] = 0; diff --git a/common/patches/uf.cpp b/common/patches/uf.cpp index d8635485c..aafef5896 100644 --- a/common/patches/uf.cpp +++ b/common/patches/uf.cpp @@ -2201,7 +2201,7 @@ namespace UF if (emu->CharCount == 0) { ALLOC_VAR_ENCODE(structs::CharacterSelect_Struct, sizeof(structs::CharacterSelect_Struct)); eq->CharCount = emu->CharCount; - eq->TotalChars = eq->TotalChars; + eq->TotalChars = emu->TotalChars; if (eq->TotalChars > consts::CHARACTER_CREATION_LIMIT) eq->TotalChars = consts::CHARACTER_CREATION_LIMIT;