mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
new feature: allowed to re-hire RPCs in case they are fired from team
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9052 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1018,6 +1018,11 @@ BOOLEAN StrategicRemoveMerc( SOLDIERTYPE *pSoldier )
|
||||
// if the merc is not dead
|
||||
if( gMercProfiles[ pSoldier->ubProfile ].bMercStatus != MERC_IS_DEAD )
|
||||
{
|
||||
//shadooow: this allows RPCs to re-appear in the areas we recruited them initially after being fired
|
||||
if (pSoldier->ubProfile != SLAY || gGameExternalOptions.fEnableSlayForever)
|
||||
{
|
||||
gMercProfiles[pSoldier->ubProfile].ubMiscFlags &= (~PROFILE_MISC_FLAG_RECRUITED);
|
||||
}
|
||||
//Set the status to returning home ( delay the merc for rehire )
|
||||
gMercProfiles[ pSoldier->ubProfile ].bMercStatus = MERC_RETURNING_HOME;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user