From 6c31cc43a0c4eadd1a10dbfe98c458aca8c442f7 Mon Sep 17 00:00:00 2001 From: NovaRain Date: Thu, 4 Jun 2020 06:40:57 +0800 Subject: [PATCH] Increased the max width of the player name on the char screen (#305) Updated version number. --- artifacts/ddraw.ini | 2 +- sfall/MiscPatches.cpp | 6 +++++- sfall/version.h | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/artifacts/ddraw.ini b/artifacts/ddraw.ini index 1322d02c..546e8769 100644 --- a/artifacts/ddraw.ini +++ b/artifacts/ddraw.ini @@ -1,5 +1,5 @@ ;sfall configuration settings -;v3.8.25 +;v3.8.26 [Main] ;Change to 1 if you want to use command line args to tell sfall to use another ini file. diff --git a/sfall/MiscPatches.cpp b/sfall/MiscPatches.cpp index 8d95fd4b..50ce5cda 100644 --- a/sfall/MiscPatches.cpp +++ b/sfall/MiscPatches.cpp @@ -585,7 +585,11 @@ void MiscPatchesInit() { const DWORD listDrvdStatsAddr[] = {0x43549C, 0x4354BE}; HookCalls(ListDrvdStats_hook, listDrvdStatsAddr); - // Increase the max text width of the information card in the character screen + // Increase the max text width of the player name on the character screen + const DWORD printBignameAddr[] = {0x435160, 0x435189}; // 100 + SafeWriteBatch(127, printBignameAddr); + + // Increase the max text width of the information card on the character screen const DWORD drawCardAddr[] = {0x43ACD5, 0x43DD37}; // 136, 133 SafeWriteBatch(145, drawCardAddr); diff --git a/sfall/version.h b/sfall/version.h index 6aabcd61..56fd28b6 100644 --- a/sfall/version.h +++ b/sfall/version.h @@ -24,11 +24,11 @@ #define VERSION_MAJOR 3 #define VERSION_MINOR 8 -#define VERSION_BUILD 25 -#define VERSION_REV 2 +#define VERSION_BUILD 26 +#define VERSION_REV 0 #ifdef WIN2K -#define VERSION_STRING "3.8.25.2 win2k" +#define VERSION_STRING "3.8.26 win2k" #else -#define VERSION_STRING "3.8.25.2" +#define VERSION_STRING "3.8.26" #endif