Browse Source

Apply BUzer's fix for func_tank.

cthulhu
Night Owl 7 years ago
parent
commit
fc215018df
  1. 5
      dlls/func_tank.cpp

5
dlls/func_tank.cpp

@ -1627,7 +1627,10 @@ void CFuncTankControls::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_
//LRC- Now uses FindEntityByTargetname, so that aliases work. //LRC- Now uses FindEntityByTargetname, so that aliases work.
while( ( tryTank = UTIL_FindEntityByTargetname( tryTank, STRING( pev->target ) ) ) ) while( ( tryTank = UTIL_FindEntityByTargetname( tryTank, STRING( pev->target ) ) ) )
{ {
if (FClassnameIs(tryTank->pev, "func_tank")) if( FClassnameIs( tryTank->pev, "func_tank" ) ||
FClassnameIs( tryTank->pev, "func_tanklaser" ) ||
FClassnameIs( tryTank->pev, "func_tankmortar" ) ||
FClassnameIs( tryTank->pev, "func_tankrocket" ) )
{ {
// this is a tank we're controlling. // this is a tank we're controlling.
((CFuncTank*)tryTank)->StopControl(this); ((CFuncTank*)tryTank)->StopControl(this);

Loading…
Cancel
Save