Skip to content

Commit 64256f4

Browse files
committed
fix stopclose4weld
1 parent 9f2c15f commit 64256f4

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/game/server/swarm/asw_door.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,10 +1082,12 @@ bool CASW_Door::CloseForWeld( CASW_Marine *pMarine )
10821082
return false;
10831083
}
10841084

1085-
bool CASW_Door::StopCloseForWeld()
1085+
bool CASW_Door::StopCloseForWeld( CASW_Marine *pMarine )
10861086
{
10871087
if ( m_bCanCloseToWeld && gpGlobals->curtime < m_fClosingToWeldTime )
10881088
{
1089+
variant_t emptyVariant;
1090+
AcceptInput( "Open", pMarine, this, emptyVariant, 0 );
10891091
m_fClosingToWeldTime = gpGlobals->curtime;
10901092
return true;
10911093
}

src/game/server/swarm/asw_door.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class CASW_Door : public CBasePropDoor
9595
Vector GetWeldFacingPoint(CBaseEntity* pOther); // the point a marine should look to weld this door
9696

9797
bool CloseForWeld(CASW_Marine* PMarine); // player requests the door to shut so he can weld it
98-
bool StopCloseForWeld();
98+
bool StopCloseForWeld(CASW_Marine *pMarine); // open the door
9999
bool IsRecommendedSeal( void ) { return m_bRecommendedSeal; }
100100
bool CanWeld( void ) { return m_bCanCloseToWeld; }
101101
float m_fClosingToWeldTime; // door won't autoopen before this curtime

src/game/shared/swarm/asw_weapon_welder_shared.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void CASW_Weapon_Welder::WeldDoor(bool bSeal)
174174
}
175175
else
176176
{
177-
pDoor->StopCloseForWeld();
177+
pDoor->StopCloseForWeld( pMarine );
178178
}
179179
#endif
180180
}

0 commit comments

Comments
 (0)