From 8635eb2d4e6caa77a4cc274e91fd467f543e8d28 Mon Sep 17 00:00:00 2001 From: "jason@long.name" Date: Mon, 12 Aug 2013 21:04:48 +0000 Subject: [PATCH] TODO- document an issue with draw-bridges git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@797 d9718cc8-9f43-0410-858b-315f434eb58c --- TODO | 3 +++ src/micropolisj/engine/MapScanner.java | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/TODO b/TODO index 2a0fb98..ff8b7d4 100644 --- a/TODO +++ b/TODO @@ -26,3 +26,6 @@ City size notifications- Graphics- *Let graphics be pluggable; use a mechanism similar to how the UI strings are pluggable according to locale. + +Draw-Bridge- + *If there's traffic on a bridge, the draw bridge does not open correctly. diff --git a/src/micropolisj/engine/MapScanner.java b/src/micropolisj/engine/MapScanner.java index af82ad5..9e1272c 100644 --- a/src/micropolisj/engine/MapScanner.java +++ b/src/micropolisj/engine/MapScanner.java @@ -355,6 +355,11 @@ class MapScanner */ private void applyBridgeChange(int [] Dx, int [] Dy, char [] fromTab, char [] toTab) { + //FIXME- a closed bridge with traffic on it is not + // correctly handled by this subroutine, because the + // the tiles representing traffic on a bridge do not match + // the expected tile values of fromTab + for (int z = 0; z < 7; z++) { int x = xpos + Dx[z]; int y = ypos + Dy[z];