TODO- document an issue with draw-bridges

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@797 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-08-12 21:04:48 +00:00
parent 11f791b86e
commit 8635eb2d4e
2 changed files with 8 additions and 0 deletions

3
TODO
View file

@ -26,3 +26,6 @@ City size notifications-
Graphics- Graphics-
*Let graphics be pluggable; use a mechanism similar to how the UI strings *Let graphics be pluggable; use a mechanism similar to how the UI strings
are pluggable according to locale. are pluggable according to locale.
Draw-Bridge-
*If there's traffic on a bridge, the draw bridge does not open correctly.

View file

@ -355,6 +355,11 @@ class MapScanner
*/ */
private void applyBridgeChange(int [] Dx, int [] Dy, char [] fromTab, char [] toTab) 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++) { for (int z = 0; z < 7; z++) {
int x = xpos + Dx[z]; int x = xpos + Dx[z];
int y = ypos + Dy[z]; int y = ypos + Dy[z];