From fc215018dffe41adb54d3385726d6f1b984bc3e2 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Fri, 16 Feb 2018 20:41:15 +0500 Subject: [PATCH] Apply BUzer's fix for func_tank. --- dlls/func_tank.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/func_tank.cpp b/dlls/func_tank.cpp index 1c2175b1..e83cc532 100644 --- a/dlls/func_tank.cpp +++ b/dlls/func_tank.cpp @@ -1627,7 +1627,10 @@ void CFuncTankControls::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_ //LRC- Now uses FindEntityByTargetname, so that aliases work. 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. ((CFuncTank*)tryTank)->StopControl(this);