X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fcarfire;a=blobdiff_plain;f=CarFire%2FCarFire%2FCarFire%2FProjectile.cs;fp=CarFire%2FCarFire%2FCarFire%2FProjectile.cs;h=a294a7851bbbb15a9d8f5ba15e0da84446da383c;hp=1dd5e08eaf1e1ac40a9f5e73e056fe81960eada6;hb=b4115cbc63a031622aefd3ebc078b57334270bc9;hpb=7bda677bc747f6e7130dd42bb906b501eb35b53f diff --git a/CarFire/CarFire/CarFire/Projectile.cs b/CarFire/CarFire/CarFire/Projectile.cs index 1dd5e08..a294a78 100644 --- a/CarFire/CarFire/CarFire/Projectile.cs +++ b/CarFire/CarFire/CarFire/Projectile.cs @@ -64,11 +64,11 @@ namespace CarFire //If the projectile will be moving to a new grid position we need to check to see if it is occupied. if ((int)((pixelX + velocity.X) / Map.PixelsToUnitSquares) != gridX || (int)((pixelY + velocity.Y) / Map.PixelsToUnitSquares) != gridY) { - bool open = theMap.IsCellOpen((int)((pixelX + velocity.X) /Map.PixelsToUnitSquares), (int)((pixelY + velocity.Y) / Map.PixelsToUnitSquares)); + //bool open = theMap.IsCellOpen((int)((pixelX + velocity.X) /Map.PixelsToUnitSquares), (int)((pixelY + velocity.Y) / Map.PixelsToUnitSquares)); //If open just move this projectile there //***Map doesn't need to know that this projectile is there because players/monsters are allowed // to move into the path of projectiles. - if (open) + //if (open) { Console.WriteLine("pixelX:" + pixelX + " " + " pixelY: "+ pixelY); pixelX += (int)velocity.X;