mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-23 13:25:36 +00:00
allow misc health readouts to detect vehicles
This commit is contained in:
parent
d22b7c7121
commit
22df872f2d
3 changed files with 3 additions and 3 deletions
|
|
@ -147,7 +147,7 @@ void GuiHealthBarHud::onRender(Point2I offset, const RectI &updateRect)
|
|||
if (!conn)
|
||||
return;
|
||||
ShapeBase* control = dynamic_cast<ShapeBase*>(conn->getControlObject());
|
||||
if (!control || !(control->getTypeMask() & PlayerObjectType))
|
||||
if (!control || !(control->getTypeMask() & (PlayerObjectType | VehicleObjectType)))
|
||||
return;
|
||||
|
||||
if(mDisplayEnergy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue