// 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
//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
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