mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Convert to SoldierID
This commit is contained in:
@@ -3793,7 +3793,7 @@ void recieveSTATE(RPCParameters *rpcParameters)
|
|||||||
{
|
{
|
||||||
EV_S_CHANGESTATE* new_state = (EV_S_CHANGESTATE*)rpcParameters->input;
|
EV_S_CHANGESTATE* new_state = (EV_S_CHANGESTATE*)rpcParameters->input;
|
||||||
|
|
||||||
SOLDIERTYPE * pSoldier=MercPtrs[ new_state->usSoldierID ];
|
SOLDIERTYPE * pSoldier = new_state->usSoldierID;
|
||||||
|
|
||||||
if(pSoldier->bActive)
|
if(pSoldier->bActive)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7800,7 +7800,7 @@ BOOLEAN BuildStructFromName( INT32 sGridNo, INT8 sLevel, const char* aStr, UINT8
|
|||||||
|
|
||||||
SoldierID gusTempDragBuildSoldierID = NOBODY;
|
SoldierID gusTempDragBuildSoldierID = NOBODY;
|
||||||
|
|
||||||
BOOLEAN BuildStructDrag( INT32 sGridNo, INT8 sLevel, UINT32 uiTileType, UINT8 usIndex, UINT16 usSoldierID )
|
BOOLEAN BuildStructDrag( INT32 sGridNo, INT8 sLevel, UINT32 uiTileType, UINT8 usIndex, SoldierID usSoldierID )
|
||||||
{
|
{
|
||||||
// needs to be a valid location
|
// needs to be a valid location
|
||||||
if ( TileIsOutOfBounds( sGridNo ) )
|
if ( TileIsOutOfBounds( sGridNo ) )
|
||||||
|
|||||||
@@ -297,7 +297,7 @@ BOOLEAN IsDragStructurePresent( INT32 sGridNo, INT8 sLevel, UINT32& arusTileType
|
|||||||
void GetDragStructureXmlEntry( UINT32 ausTileType, UINT16 ausStructureNumber, int& arXmlVectorEntry );
|
void GetDragStructureXmlEntry( UINT32 ausTileType, UINT16 ausStructureNumber, int& arXmlVectorEntry );
|
||||||
BOOLEAN RemoveStructDrag( INT32 sGridNo, INT8 sLevel, UINT32 uiTileType );
|
BOOLEAN RemoveStructDrag( INT32 sGridNo, INT8 sLevel, UINT32 uiTileType );
|
||||||
void CorrectDragStructData( INT32 sGridNo, INT8 sLevel, UINT8 ausHitpoints, UINT8 ausDecalFlags );
|
void CorrectDragStructData( INT32 sGridNo, INT8 sLevel, UINT8 ausHitpoints, UINT8 ausDecalFlags );
|
||||||
BOOLEAN BuildStructDrag( INT32 sGridNo, INT8 sLevel, UINT32 uiTileType, UINT8 usIndex, UINT16 usSoldierID );
|
BOOLEAN BuildStructDrag( INT32 sGridNo, INT8 sLevel, UINT32 uiTileType, UINT8 usIndex, SoldierID usSoldierID );
|
||||||
|
|
||||||
void UpdateFortificationPossibleAmount();
|
void UpdateFortificationPossibleAmount();
|
||||||
void HandleFortificationUpdate();
|
void HandleFortificationUpdate();
|
||||||
|
|||||||
Reference in New Issue
Block a user