diff --git a/artifacts/ddraw.ini b/artifacts/ddraw.ini index fadbc1b1..427c6b10 100644 --- a/artifacts/ddraw.ini +++ b/artifacts/ddraw.ini @@ -660,6 +660,10 @@ PartyMemberExtraInfo=0 ;Set to 1 to prevent the inventory/loot/automap interfaces from being placed on top of other script-created windows InterfaceDontMoveOnTop=0 +;Overrides the global variable number used to show the special death message of the Modoc toilet explosion +;Set to -1 to disable the special death message when the global variable is set +SpecialDeathGVAR=491 + ;Set to 1 to display sfall built-in credits at the bottom of credits.txt contents instead of at the top CreditsAtBottom=0 diff --git a/sfall/Stats.cpp b/sfall/Stats.cpp index 4b9697d0..e2763747 100644 --- a/sfall/Stats.cpp +++ b/sfall/Stats.cpp @@ -256,7 +256,7 @@ void StatsInit() { StatFormulas[i * 2 + 1] = GetPrivateProfileInt(key, "min", StatFormulas[i * 2 + 1], table); for (int j = 0; j < STAT_max_hit_points; j++) { sprintf(buf2, "shift%d", j); - StatShifts[i * 7 + j] = GetPrivateProfileInt(key, buf2, StatShifts[i * 7 + 0], table); + StatShifts[i * 7 + j] = GetPrivateProfileInt(key, buf2, StatShifts[i * 7 + j], table); sprintf(buf2, "multi%d", j); _gcvt(StatMulti[i * 7 + j], 16, buf3); GetPrivateProfileStringA(key, buf2, buf3, buf2, 256, table); diff --git a/sfall/main.cpp b/sfall/main.cpp index 53b06a5f..a6d42648 100644 --- a/sfall/main.cpp +++ b/sfall/main.cpp @@ -1533,6 +1533,9 @@ static void DllMain2() { dlogr(" Done", DL_INIT); } + int gvar = GetPrivateProfileIntA("Misc", "SpecialDeathGVAR", 491, ini); // GVAR_MODOC_SHITTY_DEATH + if (gvar != 491) SafeWrite32(0x440C2A, gvar); + dlogr("Leave DllMain2", DL_MAIN); }