mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
make crosshair show in third person
This commit is contained in:
parent
79c6a25050
commit
03d6ca749b
1 changed files with 2 additions and 1 deletions
|
|
@ -118,7 +118,8 @@ void GuiCrossHairHud::onRender(Point2I offset, const RectI &updateRect)
|
||||||
if (!conn)
|
if (!conn)
|
||||||
return;
|
return;
|
||||||
ShapeBase* control = dynamic_cast<ShapeBase*>(conn->getControlObject());
|
ShapeBase* control = dynamic_cast<ShapeBase*>(conn->getControlObject());
|
||||||
if (!control || !(control->getTypeMask() & ObjectMask) || !conn->isFirstPerson())
|
//if (!control || !(control->getTypeMask() & ObjectMask) || !conn->isFirstPerson()) //original
|
||||||
|
if (!control || !(control->getTypeMask() & ObjectMask)) //Duion: Modified to show crosshair in third person
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Parent render.
|
// Parent render.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue