From: Kyle Date: Tue, 13 Apr 2010 19:15:51 +0000 (+0000) Subject: git-svn-id: https://bd85.net/svn/cs3505_group@71 92bb83a3-7c8f-8a45-bc97-515c4e399668 X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fcarfire;a=commitdiff_plain;h=bc2e2a26b4dd7fa7e62ec4c93064ae80eef0b010;hp=26bf916b7a42c6b33ae720aa9a41e3de752961d1 git-svn-id: https://bd85.net/svn/cs3505_group@71 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- diff --git a/CarFire/CarFire/CharacterTestBed/Projectile.cs b/CarFire/CarFire/CharacterTestBed/Projectile.cs index 133c5f4..acf5d33 100644 --- a/CarFire/CarFire/CharacterTestBed/Projectile.cs +++ b/CarFire/CarFire/CharacterTestBed/Projectile.cs @@ -68,8 +68,8 @@ namespace CarFire // to move into the path of projectiles. if (open) { - pixelX += velocity.X; - pixelY += velocity.Y; + pixelX += (int)velocity.X; + pixelY += (int)velocity.Y; gridX = pixelX / theMap.gridToPixelRatio; gridY = pixelY / theMap.gridToPixelRatio; } @@ -83,8 +83,8 @@ namespace CarFire //If it is not moving grid positions just increment pixelX and pixelY else { - pixelX += velocity.X; - pixelY += velocity.Y; + pixelX += (int)velocity.X; + pixelY += (int)velocity.Y; } } @@ -106,7 +106,6 @@ namespace CarFire public int GridY { get { return gridY; } set { gridY = value; } } public int PixelX { get { return pixelX; } set { pixelX = value; } } public int PixelY { get { return pixelY; } set { pixelY = value; } } - public int Health { get { return health; } set { health = value; } } public Map TheMap { get { return theMap; } set { theMap = value; } } } }