- Fix: same militia profile is used several times in autoresolve

- Fix: sometimes no battle repoer is written for autoresolve
- Fix: no militia profile found in autoresolve due to bad sector

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8229 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2016-05-22 23:04:05 +00:00
parent 74bebdd454
commit db00927287
6 changed files with 44 additions and 7 deletions
+9
View File
@@ -3324,6 +3324,15 @@ SOLDIERTYPE* TacticalCreateMilitia( UINT8 ubMilitiaClass, INT16 sX, INT16 sY )
//bp.bAttitude = AGGRESSIVE;
bp.ubBodyType = -1;
CreateDetailedPlacementGivenBasicPlacementInfo( &pp, &bp, sX, sY );
// Flugente: this might not be properly filled in autoresolve
if ( guiCurrentScreen == AUTORESOLVE_SCREEN )
{
pp.sSectorX = sX;
pp.sSectorY = sY;
pp.bSectorZ = 0;
}
pSoldier = TacticalCreateSoldier( &pp, &ubID );
return pSoldier;