Mercurial > hg > openttd
changeset 11009:8c1eace0f5bb draft
(svn r15349) -Codechange: no need to call a function when we know there is not going to be any change to the returned result
author | belugas <belugas@openttd.org> |
---|---|
date | Thu, 05 Feb 2009 03:17:30 +0000 |
parents | caf80968eb74 |
children | 080a2d6125ed |
files | src/unmovable_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -41,7 +41,7 @@ if (flags & DC_EXEC) { TileIndex t = c->location_of_HQ; - DoClearSquare(t + TileDiffXY(0, 0)); + DoClearSquare(t); DoClearSquare(t + TileDiffXY(0, 1)); DoClearSquare(t + TileDiffXY(1, 0)); DoClearSquare(t + TileDiffXY(1, 1)); @@ -68,7 +68,7 @@ EnlargeCompanyHQ(tile, val); - MarkTileDirtyByTile(tile + TileDiffXY(0, 0)); + MarkTileDirtyByTile(tile); MarkTileDirtyByTile(tile + TileDiffXY(0, 1)); MarkTileDirtyByTile(tile + TileDiffXY(1, 0)); MarkTileDirtyByTile(tile + TileDiffXY(1, 1));