mirror of
https://github.com/zeldaret/tww.git
synced 2026-07-07 05:14:58 -04:00
Make JUT_ASSERT macro more accurate
(COND) == 0 and !(COND) both only match sometimes, but (void)((COND) || ...) seems to work all the time.
This commit is contained in:
@@ -303,8 +303,8 @@ void dBgS_Acch::CrrPos(dBgS& i_bgs) {
|
||||
SetWaterIn();
|
||||
}
|
||||
|
||||
JUT_ASSERT_FLOAT(718, m_wtr.GetHeight() >= ground.y);
|
||||
JUT_ASSERT_FLOAT(719, m_wtr.GetHeight() <= top);
|
||||
JUT_ASSERT(718, m_wtr.GetHeight() >= ground.y);
|
||||
JUT_ASSERT(719, m_wtr.GetHeight() <= top);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user