Skip to content

Commit e8d1c89

Browse files
committed
fix(welder): open unsealed door ASAP
1 parent bc71a7f commit e8d1c89

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/game/shared/swarm/asw_weapon_welder_shared.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,6 @@ void CASW_Weapon_Welder::WeldDoor(bool bSeal)
175175
}
176176
else
177177
{
178-
#ifndef CLIENT_DLL
179-
pDoor->StopCloseForWeld( pMarine );
180-
#endif
181178
bWelding = false;
182179
}
183180
}
@@ -243,6 +240,11 @@ void CASW_Weapon_Welder::FinishWeld( CASW_Marine* pMarine, bool bKeepWeldDirecti
243240
}
244241
#endif // GAME_DLL
245242
#ifndef CLIENT_DLL
243+
if ( m_iAutomaticWeldDirection < 0 && m_pWeldDoor->GetSealAmount() <= 0.0f )
244+
{
245+
// Open ASAP
246+
pDoor->StopCloseForWeld( pMarine );
247+
}
246248
m_pWeldDoor = NULL;
247249
#endif // CLIENT_DLL
248250
if ( !bKeepWeldDirection )

0 commit comments

Comments
 (0)