mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Fix personality check for backgrounds during IMP creation (#208)
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
#include "CharProfile.h"
|
#include "CharProfile.h"
|
||||||
#include "soldier profile type.h"
|
#include "soldier profile type.h"
|
||||||
#include "IMP Compile Character.h"
|
#include "IMP Compile Character.h"
|
||||||
|
#include "IMP Disability Trait.h"
|
||||||
#include "GameSettings.h"
|
#include "GameSettings.h"
|
||||||
#include "Interface.h"
|
#include "Interface.h"
|
||||||
|
|
||||||
@@ -671,7 +672,7 @@ BOOLEAN IsBackGroundAllowed( UINT16 ubNumber )
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ( iPersonality )
|
switch ( iChosenDisabilityTrait() )
|
||||||
{
|
{
|
||||||
case HEAT_INTOLERANT:
|
case HEAT_INTOLERANT:
|
||||||
if ( zBackground[ ubNumber ].value[BG_DESERT] > 0 )
|
if ( zBackground[ ubNumber ].value[BG_DESERT] > 0 )
|
||||||
|
|||||||
Reference in New Issue
Block a user