mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
NCTH CalcNewChanceToHitGun refactoring / cleanup (by silversurfer)
o Externalized ja2_options.ini value if you want to use / or not the cleaned up version of CalcNewChanceToHitGun: USE_NEW_CTH_CALCULATION o The cleanup only effects the game if you play with NCTH system o The refactoring makes the code much easier to read and also shrinks the locs o Fixed some old bugs in calculation o In the future the switch USE_NEW_CTH_CALCULATION can be removed completely o more infos: http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/322986/Re_Potential_NCTH_Code_Change_.html#Post322986 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6235 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -693,6 +693,10 @@ void LoadGameExternalOptions()
|
||||
gGameExternalOptions.guiMaxWeaponSize = iniReader.ReadInteger("System Limit Settings","MAX_WEAPON_SIZE", 9, 0, 32000);
|
||||
gGameExternalOptions.guiOIVSizeNumber = iniReader.ReadInteger("System Limit Settings","OLD_INVENTORY_ITEM_NUMBER", 99, 0, 65535);
|
||||
|
||||
// silversurfer: this is only for the cleaned up NCTH calculation. Please remove if the new functions are accepted
|
||||
// see Tactical\Weapons.cpp funtion CalcNewChanceToHitGun()
|
||||
gGameExternalOptions.fUseNewCTHCalculation = iniReader.ReadBoolean("System Limit Settings", "USE_NEW_CTH_CALCULATION", TRUE);
|
||||
|
||||
//################# Data File Settings #################
|
||||
|
||||
// WANNE: Always use prof.dat??
|
||||
|
||||
Reference in New Issue
Block a user