fix every viewport projection issue fixes #123 fixes #115

This commit is contained in:
madeline
2026-04-05 16:31:57 -07:00
parent 77fbc2b7d1
commit 0b5dcfc7ad
26 changed files with 161 additions and 7 deletions
+6
View File
@@ -429,7 +429,13 @@ void daE_FK_c::DamageAction() {
bool daE_FK_c::checkViewArea() {
Vec proj;
#if TARGET_PC
mDoLib_project(&current.pos, &proj, {0, 0, FB_WIDTH, FB_HEIGHT});
#else
mDoLib_project(&current.pos, &proj);
#endif
return (proj.x >= 0.0f && proj.x <= FB_WIDTH) && (proj.y >= 0.0f && proj.y <= FB_HEIGHT);
}