mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-04 03:55:12 +00:00
add safeties for enum math across define boundaries
This commit is contained in:
parent
1230d0d280
commit
aa02e48c8d
20 changed files with 71 additions and 71 deletions
|
|
@ -326,7 +326,7 @@ void CoverPoint::render(ObjectRenderInst *ri, SceneRenderState *state, BaseMatIn
|
|||
|
||||
// Data for decorations.
|
||||
GFXStateBlockDesc desc;
|
||||
F32 height = (float)(mSize + 1) / NumSizes * 2.0f;
|
||||
F32 height = (float)(mSize + 1) / (F32)NumSizes * 2.0f;
|
||||
|
||||
// Draw an X if we're occupied.
|
||||
if(isOccupied())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue