Mantis: 981

o Mines cannot be placed on players or structures

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@122 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2005-05-19 15:27:18 +00:00
parent b9e6317dfc
commit d395747976

View file

@ -202,7 +202,9 @@ bool AvHMine::GetDropLocation(Vector& outLocation, Vector* outAngles) const
{
CBaseEntity* theEntity = CBaseEntity::Instance( tr.pHit );
if (!dynamic_cast<AvHDeployedMine*>(theEntity))
// puzl: 981
// Mines can't be planted on players or buildings
if (!dynamic_cast<AvHDeployedMine*>(theEntity) && !dynamic_cast<AvHPlayer *>(theEntity) && !dynamic_cast<AvHBaseBuildable *>(theEntity))
{
int kOffset = 8;