added comment and fixed 1980 -> 1920

This commit is contained in:
doze-zoze authored and Cameron Ewell committed 2026-01-01 16:50:56 -05:00
1 parent faeebe3560
commit 695d579b9b
1 file changed
+2 -1
+2 -1
View File
@@ -178,7 +178,8 @@ namespace CalamityMod.Projectiles.Pets
}
else
{
onScreen = Collision.CheckAABBvAABBCollision(Projectile.position, Projectile.Size, player.Center - new Vector2(990, 600), new Vector2(1980, 1200));
//Terraria forces the game view to never go above 1920x1200px, regardless of actual resolution. This code marks the "off screen box" to match that maximum size game viewport. (960x600 is half of 1920x1200)
onScreen = Collision.CheckAABBvAABBCollision(Projectile.position, Projectile.Size, player.Center - new Vector2(960, 600), new Vector2(1920, 1200));
}
bool noGravity = (!onScreen || Projectile.wet || Collision.SolidCollision(Projectile.position, Projectile.width, Projectile.height, true));
switch (ActiveAttackState)