[-] Fixed bug with construction outline

This commit is contained in:
cybermind 2014-05-31 22:01:33 +06:00
parent 1761d0d0a2
commit 49fdea25f9

View file

@ -142,7 +142,7 @@ enum {
/* virtual */ PixelPos COrder_Build::Show(const CViewport &vp, const PixelPos &lastScreenPos) const
{
PixelPos targetPos = vp.TilePosToScreen_TopLeft(this->goalPos);
PixelPos targetPos = vp.TilePosToScreen_Center(this->goalPos);
targetPos.x += (this->GetUnitType().TileWidth - 1) * PixelTileSize.x / 2;
targetPos.y += (this->GetUnitType().TileHeight - 1) * PixelTileSize.y / 2;