mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- bug fix: reinforcements
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@636 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2372,6 +2372,11 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
|
|||||||
ubTotalSoldiers--;
|
ubTotalSoldiers--;
|
||||||
pSoldier = TacticalCreateMilitia(SOLDIER_CLASS_ELITE_MILITIA);
|
pSoldier = TacticalCreateMilitia(SOLDIER_CLASS_ELITE_MILITIA);
|
||||||
|
|
||||||
|
// Lesh: if pSoldier is NULL then no slot for a new men or other problems
|
||||||
|
// it better to leave this function is such case
|
||||||
|
if ( !pSoldier )
|
||||||
|
return;
|
||||||
|
|
||||||
pSoldier->bOrders = ONGUARD;
|
pSoldier->bOrders = ONGUARD;
|
||||||
pSoldier->ubInsertionDirection = bDesiredDirection;
|
pSoldier->ubInsertionDirection = bDesiredDirection;
|
||||||
|
|
||||||
@@ -2397,6 +2402,11 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
|
|||||||
ubTotalSoldiers--;
|
ubTotalSoldiers--;
|
||||||
pSoldier = TacticalCreateMilitia(SOLDIER_CLASS_REG_MILITIA);
|
pSoldier = TacticalCreateMilitia(SOLDIER_CLASS_REG_MILITIA);
|
||||||
|
|
||||||
|
// Lesh: if pSoldier is NULL then no slot for a new men or other problems
|
||||||
|
// it better to leave this function is such case
|
||||||
|
if ( !pSoldier )
|
||||||
|
return;
|
||||||
|
|
||||||
pSoldier->bOrders = ONGUARD;
|
pSoldier->bOrders = ONGUARD;
|
||||||
pSoldier->ubInsertionDirection = bDesiredDirection;
|
pSoldier->ubInsertionDirection = bDesiredDirection;
|
||||||
|
|
||||||
@@ -2422,6 +2432,11 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
|
|||||||
ubTotalSoldiers--;
|
ubTotalSoldiers--;
|
||||||
pSoldier = TacticalCreateMilitia(SOLDIER_CLASS_GREEN_MILITIA);
|
pSoldier = TacticalCreateMilitia(SOLDIER_CLASS_GREEN_MILITIA);
|
||||||
|
|
||||||
|
// Lesh: if pSoldier is NULL then no slot for a new men or other problems
|
||||||
|
// it better to leave this function is such case
|
||||||
|
if ( !pSoldier )
|
||||||
|
return;
|
||||||
|
|
||||||
pSoldier->bOrders = ONGUARD;
|
pSoldier->bOrders = ONGUARD;
|
||||||
pSoldier->ubInsertionDirection = bDesiredDirection;
|
pSoldier->ubInsertionDirection = bDesiredDirection;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user