mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Fix: militia reinforcements tried to take equipemnt from the wrong sector
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5915 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2551,7 +2551,7 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
|
|||||||
if (ubTotalSoldiers == 0)
|
if (ubTotalSoldiers == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Flugente: if militia picks up equipemnt from sectors, it is necessary to know from where it comes
|
// Flugente: if militia picks up equipment from sectors, it is necessary to know from where it comes
|
||||||
INT16 sX = gWorldSectorX;
|
INT16 sX = gWorldSectorX;
|
||||||
INT16 sY = gWorldSectorY;
|
INT16 sY = gWorldSectorY;
|
||||||
|
|
||||||
@@ -2563,7 +2563,7 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
|
|||||||
break;
|
break;
|
||||||
case INSERTION_CODE_EAST:
|
case INSERTION_CODE_EAST:
|
||||||
bDesiredDirection = SOUTHWEST;
|
bDesiredDirection = SOUTHWEST;
|
||||||
--sX;
|
++sX;
|
||||||
break;
|
break;
|
||||||
case INSERTION_CODE_SOUTH:
|
case INSERTION_CODE_SOUTH:
|
||||||
bDesiredDirection = NORTHWEST;
|
bDesiredDirection = NORTHWEST;
|
||||||
@@ -2571,7 +2571,7 @@ void AddSoldierInitListMilitiaOnEdge( UINT8 ubStrategicInsertionCode, UINT8 ubNu
|
|||||||
break;
|
break;
|
||||||
case INSERTION_CODE_WEST:
|
case INSERTION_CODE_WEST:
|
||||||
bDesiredDirection = NORTHEAST;
|
bDesiredDirection = NORTHEAST;
|
||||||
++sX;
|
--sX;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
AssertMsg( 0, "Illegal direction passed to AddSoldierInitListMilitiaOnEdge()" );
|
AssertMsg( 0, "Illegal direction passed to AddSoldierInitListMilitiaOnEdge()" );
|
||||||
|
|||||||
Reference in New Issue
Block a user