mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-26 06:20:58 +00:00
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:
parent
b9e6317dfc
commit
d395747976
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue