mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Looks like according to reports, they also weren't checking for physicsshapes.
This commit is contained in:
parent
2da94ed4ee
commit
348a0f20d9
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ function radiusDamage(%sourceObject, %position, %radius, %damage, %damageType, %
|
||||||
// Use the container system to iterate through all the objects
|
// Use the container system to iterate through all the objects
|
||||||
// within our explosion radius. We'll apply damage to all ShapeBase
|
// within our explosion radius. We'll apply damage to all ShapeBase
|
||||||
// objects.
|
// objects.
|
||||||
InitContainerRadiusSearch(%position, %radius, $TypeMasks::ShapeBaseObjectType);
|
InitContainerRadiusSearch(%position, %radius, $TypeMasks::ShapeBaseObjectType | $TypeMasks::DynamicShapeObjectType);
|
||||||
|
|
||||||
%halfRadius = %radius / 2;
|
%halfRadius = %radius / 2;
|
||||||
while ((%targetObject = containerSearchNext()) != 0)
|
while ((%targetObject = containerSearchNext()) != 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue