Offlane fix
This commit is contained in:
parent
b5d2466be4
commit
7aa0aa5bad
2 changed files with 21 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ public partial class ThreepeaterShooter : Shooter
|
|||
{
|
||||
for(int i = -1; i <= 1; i++)
|
||||
{
|
||||
if ((int)GetParent<Node2D>().GlobalPosition.Y/Utility.TileHeight+i < 0 || (int)GetParent<Node2D>().GlobalPosition.Y/Utility.TileHeight+i > Utility.LineCount+1)
|
||||
if ((int)GetParent<Node2D>().GlobalPosition.Y/Utility.TileHeight+i < 0 || (int)GetParent<Node2D>().GlobalPosition.Y/Utility.TileHeight+i > Utility.LineCount)
|
||||
continue;
|
||||
|
||||
var instance = _projectile.Instantiate<Node2D>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue