mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
new feature: madlab's robot can be upgraded
requires gamedir r2642 https://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=364403 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9338 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+19
-16
@@ -246,28 +246,31 @@ void HandleTacticalEndTurn( )
|
||||
cnt = gTacticalStatus.Team[ gbPlayerNum ].bFirstID;
|
||||
for ( pSoldier = MercPtrs[ cnt ]; cnt <= gTacticalStatus.Team[ gbPlayerNum ].bLastID; cnt++,pSoldier++)
|
||||
{
|
||||
if ( pSoldier->bActive && pSoldier->stats.bLife > 0 && !( pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE ) && !( AM_A_ROBOT( pSoldier ) ) )
|
||||
if ( pSoldier->bActive && pSoldier->stats.bLife > 0 && !( pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE ) )
|
||||
{
|
||||
// Handle everything from getting breath back, to bleeding, etc
|
||||
pSoldier->EVENT_BeginMercTurn( TRUE, 0 );
|
||||
|
||||
// Handle Player services
|
||||
HandlePlayerServices( pSoldier );
|
||||
|
||||
// if time is up, turn off xray
|
||||
if ( pSoldier->uiXRayActivatedTime && uiTime > pSoldier->uiXRayActivatedTime + XRAY_TIME )
|
||||
if (!AM_A_ROBOT(pSoldier))
|
||||
{
|
||||
TurnOffXRayEffects( pSoldier );
|
||||
}
|
||||
// Handle Player services
|
||||
HandlePlayerServices( pSoldier );
|
||||
|
||||
// Handle stat changes if ness.
|
||||
//if ( fCheckStats )
|
||||
//{
|
||||
//// UpdateStats( pSoldier );
|
||||
//}
|
||||
|
||||
// Flugente: update multi-turn actions
|
||||
pSoldier->UpdateMultiTurnAction();
|
||||
// if time is up, turn off xray
|
||||
if ( pSoldier->uiXRayActivatedTime && uiTime > pSoldier->uiXRayActivatedTime + XRAY_TIME )
|
||||
{
|
||||
TurnOffXRayEffects( pSoldier );
|
||||
}
|
||||
|
||||
// Handle stat changes if ness.
|
||||
//if ( fCheckStats )
|
||||
//{
|
||||
//// UpdateStats( pSoldier );
|
||||
//}
|
||||
|
||||
// Flugente: update multi-turn actions
|
||||
pSoldier->UpdateMultiTurnAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user