summaryrefslogtreecommitdiff
path: root/src/d
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2023-10-18 23:29:27 -0400
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2023-10-18 23:29:27 -0400
commit7e360ed3caa51dd4e5aa0ced6aaea26d552e2682 (patch)
treeec79eaae51274ef0606e3faadb829c3d7927b587 /src/d
parent1299f85522946aad75288ed16068545442cfc09d (diff)
c_m2d match, add JUT_ASSERT_FLOAT
Diffstat (limited to 'src/d')
-rw-r--r--src/d/d_bg_s_acch.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/d/d_bg_s_acch.cpp b/src/d/d_bg_s_acch.cpp
index b805379d..b08d56b3 100644
--- a/src/d/d_bg_s_acch.cpp
+++ b/src/d/d_bg_s_acch.cpp
@@ -208,17 +208,8 @@ void dBgS_Acch::CrrPos(dBgS& i_bgs) {
SetWaterIn();
}
- // JUT_ASSERT's (COND) == 0 check screws up the codegen here. Using !(COND) instead fixes it.
- // JUT_ASSERT(718, m_wtr.GetHeight() >= ground.y);
- // JUT_ASSERT(719, m_wtr.GetHeight() <= top);
- if (!(m_wtr.GetHeight() >= ground.y)) {
- JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, 718, "m_wtr.GetHeight() >= ground.y");
- OSPanic(__FILE__, 718, "Halt");
- }
- if (!(m_wtr.GetHeight() <= top)) {
- JUTAssertion::showAssert(JUTAssertion::getSDevice(), __FILE__, 719, "m_wtr.GetHeight() <= top");
- OSPanic(__FILE__, 719, "Halt");
- }
+ JUT_ASSERT_FLOAT(718, m_wtr.GetHeight() >= ground.y);
+ JUT_ASSERT_FLOAT(719, m_wtr.GetHeight() <= top);
}
}
}