cleanup: no longer need the autoDoze function
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@592 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
21ecd20092
commit
9c5b1fca33
2 changed files with 0 additions and 24 deletions
4
TODO
4
TODO
|
@ -1,7 +1,3 @@
|
|||
Autodoze-
|
||||
*Do not autodoze for roads,rails, or wire if not enough money to actually
|
||||
build it
|
||||
|
||||
Micropolis::map[] array-
|
||||
*Consider changing type from 'char' to 'short'
|
||||
|
||||
|
|
|
@ -458,26 +458,6 @@ public enum MicropolisTool
|
|||
}
|
||||
}
|
||||
|
||||
void autoDoze(Micropolis engine, int xpos, int ypos)
|
||||
{
|
||||
if (engine.autoBulldoze && engine.totalFunds > 0)
|
||||
{
|
||||
char tile = engine.getTile(xpos, ypos);
|
||||
char ntile = neutralizeRoad(tile);
|
||||
|
||||
if ((tile & BULLBIT) != 0 &&
|
||||
((ntile >= TINYEXP &&
|
||||
ntile <= LASTTINYEXP) ||
|
||||
(ntile < HBRIDGE && ntile != DIRT)
|
||||
)
|
||||
)
|
||||
{
|
||||
engine.spend(1);
|
||||
engine.setTile(xpos, ypos, DIRT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ToolResult applyRailTool(Micropolis engine, int xpos, int ypos)
|
||||
{
|
||||
if (!engine.testBounds(xpos, ypos))
|
||||
|
|
Reference in a new issue