added comment and fixed 1980 -> 1920
This commit is contained in:
1 parent
faeebe3560
commit
695d579b9b
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user