]> Dogcows Code - chaz/carfire/commitdiff
git-svn-id: https://bd85.net/svn/cs3505_group@71 92bb83a3-7c8f-8a45-bc97-515c4e399668
authorKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Tue, 13 Apr 2010 19:15:51 +0000 (19:15 +0000)
committerKyle <Kyle@92bb83a3-7c8f-8a45-bc97-515c4e399668>
Tue, 13 Apr 2010 19:15:51 +0000 (19:15 +0000)
CarFire/CarFire/CharacterTestBed/Projectile.cs

index 133c5f44ea07771f507e776061e63f6802e5e92e..acf5d33b092668df400ba0ec7421c32b2ed3613d 100644 (file)
@@ -68,8 +68,8 @@ namespace CarFire
                 // to move into the path of projectiles.\r
                 if (open)\r
                 {\r
-                    pixelX += velocity.X;\r
-                    pixelY += velocity.Y;\r
+                    pixelX += (int)velocity.X;\r
+                    pixelY += (int)velocity.Y;\r
                     gridX = pixelX / theMap.gridToPixelRatio;\r
                     gridY = pixelY / theMap.gridToPixelRatio;\r
                 }\r
@@ -83,8 +83,8 @@ namespace CarFire
             //If it is not moving grid positions just increment pixelX and pixelY\r
             else\r
             {\r
-                pixelX += velocity.X;\r
-                pixelY += velocity.Y;\r
+                pixelX += (int)velocity.X;\r
+                pixelY += (int)velocity.Y;\r
             }\r
             \r
         }\r
@@ -106,7 +106,6 @@ namespace CarFire
         public int GridY { get { return gridY; } set { gridY = value; } }\r
         public int PixelX { get { return pixelX; } set { pixelX = value; } }\r
         public int PixelY { get { return pixelY; } set { pixelY = value; } }\r
-        public int Health { get { return health; } set { health = value; } }\r
         public Map TheMap { get { return theMap; } set { theMap = value; } }\r
     }\r
 }\r
This page took 0.019891 seconds and 4 git commands to generate.