File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/game/server/infclass/classes/humans Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1741,7 +1741,6 @@ void CInfClassHuman::PlaceEngineerWall(WeaponFireContext *pFireContext)
1741
1741
if (!GameController ()->HumanWallAllowedInPos (TestPos))
1742
1742
{
1743
1743
pFireContext->FireAccepted = false ;
1744
- pFireContext->NoAmmo = true ;
1745
1744
break ;
1746
1745
}
1747
1746
}
@@ -1751,6 +1750,10 @@ void CInfClassHuman::PlaceEngineerWall(WeaponFireContext *pFireContext)
1751
1750
pExistingWall->SetEndPosition (GetPos ());
1752
1751
GameServer ()->CreateSound (GetPos (), SOUND_LASER_FIRE);
1753
1752
}
1753
+ else
1754
+ {
1755
+ GameWorld ()->DestroyEntity (pExistingWall);
1756
+ }
1754
1757
}
1755
1758
}
1756
1759
@@ -1786,7 +1789,6 @@ void CInfClassHuman::PlaceLooperWall(WeaponFireContext *pFireContext)
1786
1789
if (!GameController ()->HumanWallAllowedInPos (TestPos))
1787
1790
{
1788
1791
pFireContext->FireAccepted = false ;
1789
- pFireContext->NoAmmo = true ;
1790
1792
break ;
1791
1793
}
1792
1794
}
@@ -1796,6 +1798,10 @@ void CInfClassHuman::PlaceLooperWall(WeaponFireContext *pFireContext)
1796
1798
pExistingWall->SetEndPosition (GetPos ());
1797
1799
GameServer ()->CreateSound (GetPos (), SOUND_LASER_FIRE);
1798
1800
}
1801
+ else
1802
+ {
1803
+ GameWorld ()->DestroyEntity (pExistingWall);
1804
+ }
1799
1805
}
1800
1806
}
1801
1807
You can’t perform that action at this time.
0 commit comments