Re-added CarChargingFix option back in ddraw.ini for other mods with custom vehicles.

This commit is contained in:
NovaRain
2016-03-11 11:32:24 +08:00
parent 972d978882
commit dfe4b6b2e0
2 changed files with 10 additions and 6 deletions
+3
View File
@@ -552,6 +552,9 @@ EnableMusicInDialogue=0
;Set to 1 to fix the bug that unable to sell used geiger counters or stealth boys
CanSellUsedGeiger=1
;Set to 1 to fix the issue with being able to charge the car by using cells on other scenary/critters
CarChargingFix=1
;Set to 1 to skip weapon equip/unequip animations when searching containers or doing other actions
InstantWeaponEquip=0
+7 -6
View File
@@ -729,14 +729,15 @@ void BugsInit()
dlogr(" Done.", DL_INIT);
//}
// Fixes for being able to charge the car with using cells on scenary/critters
// and cells getting consumed even when the car is already fully charged
//if (GetPrivateProfileIntA("Misc", "CarChargingFix", 1, ini)) {
dlog("Applying car charging issues fix.", DL_INIT);
MakeCall(0x49C36D, &protinst_default_use_item_hack, true);
// Fix for cells getting consumed even when the car is already fully charged
MakeCall(0x49BE70, &obj_use_power_on_car_hack, false);
// Fix for being able to charge the car by using cells on other scenary/critters
if (GetPrivateProfileIntA("Misc", "CarChargingFix", 1, ini)) {
dlog("Applying car charging fix.", DL_INIT);
MakeCall(0x49C36D, &protinst_default_use_item_hack, true);
dlogr(" Done.", DL_INIT);
//}
}
// makes jet addiction eternal.. why?
//MakeCall(0x47A3A4, &item_wd_process_hook, false);