summaryrefslogtreecommitdiff
path: root/src/d/d_meter2_info.cpp
diff options
context:
space:
mode:
authorroeming <brother64youyou@gmail.com>2025-12-07 20:09:47 -0500
committerGitHub <noreply@github.com>2025-12-07 17:09:47 -0800
commit07a4e6b05289b7efcd37f9c69afb8336c0171aa0 (patch)
treebfe2a1297687b67d6539eb5102d8af992b591369 /src/d/d_meter2_info.cpp
parente82c27fd001994abdd894f94d62b7e628b446c8e (diff)
match debug for D_menu_fmap2_d (#2925)
* menu_fmap2d debug progress * match debug for d_menu_fmap2D * fix broken function * fix weird shield mismatch * fix other shield mismatch * fix suggestions * fix func for wii version * match func for all versions * remove cast from saveBitLabels
Diffstat (limited to 'src/d/d_meter2_info.cpp')
-rw-r--r--src/d/d_meter2_info.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/d/d_meter2_info.cpp b/src/d/d_meter2_info.cpp
index f62455b877..94ddceb726 100644
--- a/src/d/d_meter2_info.cpp
+++ b/src/d/d_meter2_info.cpp
@@ -1414,7 +1414,7 @@ const char* dMeter2Info_getPlusTextureName() {
return tex_name;
}
-bool dMeter2Info_getPixel(f32 i_posX, f32 i_posY, f32 param_2, f32 param_3, f32 i_sizeX,
+u8 dMeter2Info_getPixel(f32 i_posX, f32 i_posY, f32 param_2, f32 param_3, f32 i_sizeX,
f32 i_sizeY, ResTIMG const* i_resTimg) {
f32 temp_f31 = i_posX - param_2;
f32 temp_f30 = i_posY - param_3;
@@ -1442,7 +1442,7 @@ bool dMeter2Info_getPixel(f32 i_posX, f32 i_posY, f32 param_2, f32 param_3, f32
return 1;
}
- return var_r24 & 0x7000;
+ return (var_r24 & 0x7000) != 0;
}
void dMeter2Info_setCloth(u8 i_clothId, bool i_offItemBit) {