mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
- Bugfix: Random stats for mercs were still applied even if they shouldn't
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5981 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -437,10 +437,10 @@ void RandomStats ()
|
|||||||
INT8 bBaseAttribute = 0;
|
INT8 bBaseAttribute = 0;
|
||||||
MERCPROFILESTRUCT * pProfile;
|
MERCPROFILESTRUCT * pProfile;
|
||||||
|
|
||||||
BOOLEAN randomStatsEnabled = FALSE;
|
|
||||||
|
|
||||||
for ( cnt = 0; cnt < NUM_PROFILES; cnt++ )
|
for ( cnt = 0; cnt < NUM_PROFILES; cnt++ )
|
||||||
{
|
{
|
||||||
|
BOOLEAN randomStatsEnabled = FALSE;
|
||||||
|
|
||||||
// WANNE: Random Stats are based on the INI entry (MERCS_RANDOM_STATS)
|
// WANNE: Random Stats are based on the INI entry (MERCS_RANDOM_STATS)
|
||||||
if ((gGameExternalOptions.ubMercRandomStats == 1) || (gGameExternalOptions.ubMercRandomStats == 2 && gRandomStatsValue[cnt].Enabled))
|
if ((gGameExternalOptions.ubMercRandomStats == 1) || (gGameExternalOptions.ubMercRandomStats == 2 && gRandomStatsValue[cnt].Enabled))
|
||||||
randomStatsEnabled = TRUE;
|
randomStatsEnabled = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user