mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-12 00:24:01 +00:00
Runtime/World: Replace bitfield unions with constructor initializers
This commit is contained in:
@@ -61,14 +61,18 @@ CScriptWater::CScriptWater(
|
||||
, x2b4_alphaInRecip((alphaInTime != 0.f) ? 1.f / alphaInTime : 0.f)
|
||||
, x2b8_alphaOutRecip((alphaOutTime != 0.f) ? 1.f / alphaOutTime : 0.f)
|
||||
, x2bc_alpha(alpha)
|
||||
, x2c0_tileSize(tileSize) {
|
||||
, x2c0_tileSize(tileSize)
|
||||
, x2e8_24_b4(b4)
|
||||
, x2e8_25_morphIn(false)
|
||||
, x2e8_26_morphing(false)
|
||||
, x2e8_27_allowRender(allowRender)
|
||||
, x2e8_28_recomputeClipping(true)
|
||||
, x2e8_29_alphaIn(false)
|
||||
, x2e8_30_alphaOut(false) {
|
||||
zeus::CAABox triggerAABB = GetTriggerBoundsWR();
|
||||
x2c4_gridDimX = u32((x2c0_tileSize + triggerAABB.max.x() - triggerAABB.min.x() - 0.01f) / x2c0_tileSize);
|
||||
x2c8_gridDimY = u32((x2c0_tileSize + triggerAABB.max.y() - triggerAABB.min.y() - 0.01f) / x2c0_tileSize);
|
||||
x2cc_gridCellCount = (x2c4_gridDimX + 1) * (x2c8_gridDimY + 1);
|
||||
x2e8_24_b4 = b4;
|
||||
x2e8_27_allowRender = allowRender;
|
||||
x2e8_28_recomputeClipping = true;
|
||||
|
||||
uint32_t maxPatchSize;
|
||||
if (CGraphics::g_BooFactory->isTessellationSupported(maxPatchSize))
|
||||
|
||||
Reference in New Issue
Block a user