From bc2e2a26b4dd7fa7e62ec4c93064ae80eef0b010 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 13 Apr 2010 19:15:51 +0000 Subject: [PATCH] git-svn-id: https://bd85.net/svn/cs3505_group@71 92bb83a3-7c8f-8a45-bc97-515c4e399668 --- CarFire/CarFire/CharacterTestBed/Projectile.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; } } } } -- 2.45.2