From 9c5b1fca33c7b3e683fe5e999723c94790559c95 Mon Sep 17 00:00:00 2001 From: "jason@long.name" Date: Wed, 27 Feb 2013 01:30:36 +0000 Subject: [PATCH] cleanup: no longer need the autoDoze function git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@592 d9718cc8-9f43-0410-858b-315f434eb58c --- TODO | 4 ---- src/micropolisj/engine/MicropolisTool.java | 20 -------------------- 2 files changed, 24 deletions(-) diff --git a/TODO b/TODO index a4590da..75e7fd1 100644 --- a/TODO +++ b/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' diff --git a/src/micropolisj/engine/MicropolisTool.java b/src/micropolisj/engine/MicropolisTool.java index 81cd5fe..3013e3c 100644 --- a/src/micropolisj/engine/MicropolisTool.java +++ b/src/micropolisj/engine/MicropolisTool.java @@ -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))