From 3d56b61ddaa7eaae9b4d91bbd29331eced24ed9a Mon Sep 17 00:00:00 2001 From: Wanne Date: Sun, 21 Jul 2013 17:09:14 +0000 Subject: [PATCH] o Externalized ja2_options.ini value if you want to use / or not the cleaned up version of CalcNewChanceToHitGun: USE_NEW_CTH_CALCULATION (by silversurfer) o see: 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_v1.13_data@1710 4f8fa57e-7814-0410-bad4-adc449f26b7c --- gamedir/Data-1.13/Ja2_Options.INI | 7 +++++++ gamedir/Data-UB/Ja2_Options.ini | 7 +++++++ gamedir/Data/Ja2_Options.INI | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/gamedir/Data-1.13/Ja2_Options.INI b/gamedir/Data-1.13/Ja2_Options.INI index c77866317..b69e81417 100644 --- a/gamedir/Data-1.13/Ja2_Options.INI +++ b/gamedir/Data-1.13/Ja2_Options.INI @@ -123,6 +123,13 @@ MAX_ITEM_SIZE = 34 MAX_WEAPON_SIZE = 9 OLD_INVENTORY_ITEM_NUMBER = 99 +;------------------------------------------------------------------------------------------------------------------------------ +; USE_NEW_CTH_CALCULATION is an experimental switch which causes the game to use a cleaned up version of NCTH calculation. +; This switch will do nothing if you play with OCTH. +; The new code is easier to read for programmers and therefore (hopefully) easier to improve. ;-) +; The switch and the old code will probably be removed in the future. +;------------------------------------------------------------------------------------------------------------------------------ +USE_NEW_CTH_CALCULATION = TRUE ;****************************************************************************************************************************** ;****************************************************************************************************************************** diff --git a/gamedir/Data-UB/Ja2_Options.ini b/gamedir/Data-UB/Ja2_Options.ini index 3ae3c79b3..c052583d4 100644 --- a/gamedir/Data-UB/Ja2_Options.ini +++ b/gamedir/Data-UB/Ja2_Options.ini @@ -123,6 +123,13 @@ MAX_ITEM_SIZE = 34 MAX_WEAPON_SIZE = 9 OLD_INVENTORY_ITEM_NUMBER = 99 +;------------------------------------------------------------------------------------------------------------------------------ +; USE_NEW_CTH_CALCULATION is an experimental switch which causes the game to use a cleaned up version of NCTH calculation. +; This switch will do nothing if you play with OCTH. +; The new code is easier to read for programmers and therefore (hopefully) easier to improve. ;-) +; The switch and the old code will probably be removed in the future. +;------------------------------------------------------------------------------------------------------------------------------ +USE_NEW_CTH_CALCULATION = TRUE ;****************************************************************************************************************************** ;****************************************************************************************************************************** diff --git a/gamedir/Data/Ja2_Options.INI b/gamedir/Data/Ja2_Options.INI index aa9856ea0..cf9513685 100644 --- a/gamedir/Data/Ja2_Options.INI +++ b/gamedir/Data/Ja2_Options.INI @@ -123,6 +123,13 @@ MAX_ITEM_SIZE = 34 MAX_WEAPON_SIZE = 9 OLD_INVENTORY_ITEM_NUMBER = 99 +;------------------------------------------------------------------------------------------------------------------------------ +; USE_NEW_CTH_CALCULATION is an experimental switch which causes the game to use a cleaned up version of NCTH calculation. +; This switch will do nothing if you play with OCTH. +; The new code is easier to read for programmers and therefore (hopefully) easier to improve. ;-) +; The switch and the old code will probably be removed in the future. +;------------------------------------------------------------------------------------------------------------------------------ +USE_NEW_CTH_CALCULATION = TRUE ;****************************************************************************************************************************** ;******************************************************************************************************************************