mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-11 11:02:37 -04:00
npc actor in screen check fix, fix dBgWKCol::RoofChk using wrong var for prism idx calc
This commit is contained in:
@@ -2695,9 +2695,15 @@ BOOL daNpcT_chkActorInScreen(fopAc_ac_c* i_ActorP, f32 param_1, f32 param_2, f32
|
||||
|
||||
for (int i = 0; i < 8; i++) {
|
||||
mDoLib_project(&pos_array[i], &proj);
|
||||
#if TARGET_PC
|
||||
if (0.0f < proj.x && proj.x < mDoGph_gInf_c::getWidth() && 0.0f < proj.y && proj.y < mDoGph_gInf_c::getHeight()) {
|
||||
continue;
|
||||
}
|
||||
#else
|
||||
if (0.0f < proj.x && proj.x < FB_WIDTH && 0.0f < proj.y && proj.y < FB_HEIGHT) {
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user