Increased the max text width of the info card in the char screen.

* the increased the width is according to the max width of one char in
font (uppercase A seems to be the widest with 8 px).
This commit is contained in:
NovaRain
2019-05-20 11:25:42 +08:00
parent 3a86f1d134
commit 10a6b76d5b
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ static void __declspec(naked) ConsoleHook() {
void Console::init() { void Console::init() {
auto path = GetConfigString("Misc", "ConsoleOutputPath", "", MAX_PATH); auto path = GetConfigString("Misc", "ConsoleOutputPath", "", MAX_PATH);
if (path.size() > 0) { if (!path.empty()) {
consolefile.open(path); consolefile.open(path);
if (consolefile.is_open()) { if (consolefile.is_open()) {
MakeJump(0x43186C, ConsoleHook); MakeJump(0x43186C, ConsoleHook);
+3
View File
@@ -856,6 +856,9 @@ void MiscPatches::init() {
dlogr(" Done", DL_INIT); dlogr(" Done", DL_INIT);
} }
// Increase the max text width of the information card in the character screen
SafeWriteBatch<BYTE>(144, {0x43ACD5, 0x43DD37}); // 136, 133
LoadGameHook::OnBeforeGameStart() += BodypartHitChances; // set on start & load LoadGameHook::OnBeforeGameStart() += BodypartHitChances; // set on start & load
CombatProcFix(); CombatProcFix();