Removed DivisionOperatorFix from ddraw.ini (always enabled)

This commit is contained in:
NovaRain
2022-04-29 08:09:24 +08:00
parent 9a6022d923
commit b24df4caad
2 changed files with 3 additions and 7 deletions
+1 -5
View File
@@ -1,5 +1,5 @@
;sfall configuration settings
;v4.3.4
;v4.3.4.1
[Main]
;Set to 1 to enable the built-in High Resolution Patch mode that is similar to the hi-res patch by Mash
@@ -741,10 +741,6 @@ CreateObjectSidFix=0
;Note that enabling this option will cause problems for existing grave scripts
GraveContainersFix=0
;Set to 1 to fix the issue with the division operator treating negative integers as unsigned
;Note: To perform the unsigned integer division, use the new 'div' operator
DivisionOperatorFix=1
;Set to 1 to fix the priority score calculation for choosing the best weapon for NPCs
;Note that enabling this option can affect the weapon of choice for some NPCs
AIBestWeaponFix=1
+2 -2
View File
@@ -3195,11 +3195,11 @@ void BugFixes::init()
SafeWrite16(0x46A4E7, 0x04DB);
// Fix for vanilla division operator treating negative integers as unsigned
if (IniReader::GetConfigInt("Misc", "DivisionOperatorFix", 1)) {
//if (IniReader::GetConfigInt("Misc", "DivisionOperatorFix", 1)) {
dlog("Applying division operator fix.", DL_FIX);
SafeWrite32(0x46A51D, 0xFBF79990); // xor edx, edx; div ebx > cdq; idiv ebx
dlogr(" Done", DL_FIX);
}
//}
//if (IniReader::GetConfigInt("Misc", "SpecialUnarmedAttacksFix", 1)) {
dlog("Applying Special Unarmed Attacks fix.", DL_FIX);