mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +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 );
|
||||
}
|
||||
|
||||
if( pSoldier->stats.bLife >= OKLIFE )
|
||||
if( pSoldier->stats.bLife >= OKLIFE && !(pSoldier->bCollapsed && pSoldier->bBreath < OKBREATH) )
|
||||
{
|
||||
if( pSoldier->sGridNo != pSoldier->pathing.sFinalDestination || pSoldier->bGoodContPath )
|
||||
{
|
||||
|
||||
@@ -21855,6 +21855,8 @@ void SoldierCollapse( SOLDIERTYPE *pSoldier )
|
||||
|
||||
pSoldier->bCollapsed = TRUE;
|
||||
|
||||
pSoldier->usUIMovementMode = CRAWLING;
|
||||
|
||||
pSoldier->ReceivingSoldierCancelServices( );
|
||||
|
||||
// CC has requested - handle sight here...
|
||||
|
||||
Reference in New Issue
Block a user