mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
Fixed UI movement mode not switching to crawl on character collapse, leading to deadlocks (#231)
This commit is contained in:
+1
-1
@@ -3214,7 +3214,7 @@ BOOLEAN CheckForMercContMove( SOLDIERTYPE *pSoldier )
|
|||||||
return( FALSE );
|
return( FALSE );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( pSoldier->stats.bLife >= OKLIFE )
|
if( pSoldier->stats.bLife >= OKLIFE && !(pSoldier->bCollapsed && pSoldier->bBreath < OKBREATH) )
|
||||||
{
|
{
|
||||||
if( pSoldier->sGridNo != pSoldier->pathing.sFinalDestination || pSoldier->bGoodContPath )
|
if( pSoldier->sGridNo != pSoldier->pathing.sFinalDestination || pSoldier->bGoodContPath )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -21855,6 +21855,8 @@ void SoldierCollapse( SOLDIERTYPE *pSoldier )
|
|||||||
|
|
||||||
pSoldier->bCollapsed = TRUE;
|
pSoldier->bCollapsed = TRUE;
|
||||||
|
|
||||||
|
pSoldier->usUIMovementMode = CRAWLING;
|
||||||
|
|
||||||
pSoldier->ReceivingSoldierCancelServices( );
|
pSoldier->ReceivingSoldierCancelServices( );
|
||||||
|
|
||||||
// CC has requested - handle sight here...
|
// CC has requested - handle sight here...
|
||||||
|
|||||||
Reference in New Issue
Block a user