mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Automatic cancellation of running if the merc is in a running state and was not moved since last turn (by Headrock)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3138 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6612,6 +6612,24 @@ void SOLDIERTYPE::EVENT_BeginMercTurn( BOOLEAN fFromRealTime, INT32 iRealTimeCou
|
|||||||
|
|
||||||
this->CalcNewActionPoints( );
|
this->CalcNewActionPoints( );
|
||||||
|
|
||||||
|
// HEADROCK HAM 3.6: If this soldier is in a "moving" animation, but has not moved any tiles
|
||||||
|
// in the previous turn, then the player has apparently forgotten that he was moving.
|
||||||
|
// In this case, abort the character's action.
|
||||||
|
|
||||||
|
// If haven't moved since the start of last round
|
||||||
|
if (!this->bTilesMoved)
|
||||||
|
{
|
||||||
|
// but are doing a movement animation
|
||||||
|
if ( !( gAnimControl[ this->usAnimState ].uiFlags & ANIM_STATIONARY ) )
|
||||||
|
{
|
||||||
|
// Stop the merc
|
||||||
|
this->EVENT_StopMerc( this->sGridNo, this->ubDirection );
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reset destination
|
||||||
|
this->pathing.sFinalDestination = this->sGridNo;
|
||||||
|
}
|
||||||
|
|
||||||
this->bTilesMoved = 0;
|
this->bTilesMoved = 0;
|
||||||
|
|
||||||
if ( this->bInSector )
|
if ( this->bInSector )
|
||||||
|
|||||||
Reference in New Issue
Block a user