mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Removed DivisionOperatorFix from ddraw.ini (always enabled)
This commit is contained in:
+1
-5
@@ -1,5 +1,5 @@
|
|||||||
;sfall configuration settings
|
;sfall configuration settings
|
||||||
;v3.8.34
|
;v3.8.34.1
|
||||||
|
|
||||||
[Main]
|
[Main]
|
||||||
;Set to 1 if you want to use command line arguments to tell sfall to use another ini file
|
;Set to 1 if you want to use command line arguments to tell sfall to use another ini file
|
||||||
@@ -740,10 +740,6 @@ CreateObjectSidFix=0
|
|||||||
;Note that enabling this option will cause problems for existing grave scripts
|
;Note that enabling this option will cause problems for existing grave scripts
|
||||||
GraveContainersFix=0
|
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
|
;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
|
;Note that enabling this option can affect the weapon of choice for some NPCs
|
||||||
AIBestWeaponFix=1
|
AIBestWeaponFix=1
|
||||||
|
|||||||
@@ -3184,11 +3184,11 @@ void BugFixes::init()
|
|||||||
SafeWrite16(0x46A4E7, 0x04DB);
|
SafeWrite16(0x46A4E7, 0x04DB);
|
||||||
|
|
||||||
// Fix for vanilla division operator treating negative integers as unsigned
|
// 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);
|
dlog("Applying division operator fix.", DL_FIX);
|
||||||
SafeWrite32(0x46A51D, 0xFBF79990); // xor edx, edx; div ebx > cdq; idiv ebx
|
SafeWrite32(0x46A51D, 0xFBF79990); // xor edx, edx; div ebx > cdq; idiv ebx
|
||||||
dlogr(" Done", DL_FIX);
|
dlogr(" Done", DL_FIX);
|
||||||
}
|
//}
|
||||||
|
|
||||||
//if (IniReader::GetConfigInt("Misc", "SpecialUnarmedAttacksFix", 1)) {
|
//if (IniReader::GetConfigInt("Misc", "SpecialUnarmedAttacksFix", 1)) {
|
||||||
dlog("Applying Special Unarmed Attacks fix.", DL_FIX);
|
dlog("Applying Special Unarmed Attacks fix.", DL_FIX);
|
||||||
|
|||||||
Reference in New Issue
Block a user