File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed
Generals/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw
GeneralsMD/Code/GameEngineDevice/Source/W3DDevice/GameClient/Drawable/Draw Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,12 @@ void W3DTankDraw::updateTreadPositions(Real uvDelta)
234
234
else
235
235
if (pTread->m_type == TREAD_RIGHT) // this tread needs to scroll backwards
236
236
offset_u = pTread->m_materialSettings .customUVOffset .X - uvDelta;
237
-
237
+ else
238
+ {
239
+ DEBUG_CRASH ((" Unhandled case in W3DTankDraw::updateTreadPositions" ));
240
+ offset_u = 0 .0f ;
241
+ }
242
+
238
243
// ensure coordinates of offset are in [0, 1] range:
239
244
offset_u = offset_u - WWMath::Floor (offset_u);
240
245
pTread->m_materialSettings .customUVOffset .Set (offset_u,0 );
Original file line number Diff line number Diff line change @@ -414,7 +414,12 @@ void W3DTankTruckDraw::updateTreadPositions(Real uvDelta)
414
414
else
415
415
if (pTread->m_type == TREAD_RIGHT) // this tread needs to scroll backwards
416
416
offset_u = pTread->m_materialSettings .customUVOffset .X - uvDelta;
417
-
417
+ else
418
+ {
419
+ DEBUG_CRASH ((" Unhandled case in W3DTankTruckDraw::updateTreadPositions" ));
420
+ offset_u = 0 .0f ;
421
+ }
422
+
418
423
// ensure coordinates of offset are in [0, 1] range:
419
424
offset_u = offset_u - WWMath::Floor (offset_u);
420
425
pTread->m_materialSettings .customUVOffset .Set (offset_u,0 );
Original file line number Diff line number Diff line change @@ -234,7 +234,12 @@ void W3DTankDraw::updateTreadPositions(Real uvDelta)
234
234
else
235
235
if (pTread->m_type == TREAD_RIGHT) // this tread needs to scroll backwards
236
236
offset_u = pTread->m_materialSettings .customUVOffset .X - uvDelta;
237
-
237
+ else
238
+ {
239
+ DEBUG_CRASH ((" Unhandled case in W3DTankDraw::updateTreadPositions" ));
240
+ offset_u = 0 .0f ;
241
+ }
242
+
238
243
// ensure coordinates of offset are in [0, 1] range:
239
244
offset_u = offset_u - WWMath::Floor (offset_u);
240
245
pTread->m_materialSettings .customUVOffset .Set (offset_u,0 );
Original file line number Diff line number Diff line change @@ -414,7 +414,12 @@ void W3DTankTruckDraw::updateTreadPositions(Real uvDelta)
414
414
else
415
415
if (pTread->m_type == TREAD_RIGHT) // this tread needs to scroll backwards
416
416
offset_u = pTread->m_materialSettings .customUVOffset .X - uvDelta;
417
-
417
+ else
418
+ {
419
+ DEBUG_CRASH ((" Unhandled case in W3DTankTruckDraw::updateTreadPositions" ));
420
+ offset_u = 0 .0f ;
421
+ }
422
+
418
423
// ensure coordinates of offset are in [0, 1] range:
419
424
offset_u = offset_u - WWMath::Floor (offset_u);
420
425
pTread->m_materialSettings .customUVOffset .Set (offset_u,0 );
You can’t perform that action at this time.
0 commit comments