Use SoldierID

This commit is contained in:
Asdow
2024-11-20 21:03:08 +02:00
parent d826491c83
commit dbc4135974
12 changed files with 60 additions and 60 deletions
+5 -5
View File
@@ -5471,7 +5471,7 @@ void CreateNextCivType()
MercCreateStruct.sInsertionGridNo = usMapPos;
RandomizeNewSoldierStats( &MercCreateStruct );
UINT16 iNewIndex;
SoldierID iNewIndex;
if ( TacticalCreateSoldier( &MercCreateStruct, &iNewIndex ) )
{
AddSoldierToSector( iNewIndex );
@@ -5518,7 +5518,7 @@ void CreateCow()
MercCreateStruct.sInsertionGridNo = usMapPos;
RandomizeNewSoldierStats( &MercCreateStruct );
UINT16 iNewIndex;
SoldierID iNewIndex;
if ( TacticalCreateSoldier( &MercCreateStruct, &iNewIndex ) )
{
AddSoldierToSector( iNewIndex );
@@ -5547,7 +5547,7 @@ void CreateBloodCat()
MercCreateStruct.sInsertionGridNo = usMapPos;
RandomizeNewSoldierStats( &MercCreateStruct );
UINT16 iNewIndex;
SoldierID iNewIndex;
if ( TacticalCreateSoldier( &MercCreateStruct, &iNewIndex ) )
{
AddSoldierToSector( iNewIndex );
@@ -5577,7 +5577,7 @@ void CreatePlayerControlledCow()
RandomizeNewSoldierStats( &MercCreateStruct );
UINT16 iNewIndex;
SoldierID iNewIndex;
if ( TacticalCreateSoldier( &MercCreateStruct, &iNewIndex ) )
{
AddSoldierToSector( iNewIndex );
@@ -5642,7 +5642,7 @@ void CreatePlayerControlledMonster()
if ( GetMouseMapPos( &usMapPos ) )
{
SOLDIERCREATE_STRUCT MercCreateStruct;
UINT16 iNewIndex;
SoldierID iNewIndex;
MercCreateStruct.ubProfile = NO_PROFILE;
MercCreateStruct.sSectorX = gWorldSectorX;