cleanup: do not refetch the tile value when a property exists having it

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@686 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-05-28 01:55:41 +00:00
parent cd7537768d
commit 25751e73c4

View file

@ -833,7 +833,7 @@ class MapScanner
*/ */
void setSmoke(boolean powerOn) void setSmoke(boolean powerOn)
{ {
int cchr9 = city.map[ypos][xpos] & LOMASK; int cchr9 = cchr & LOMASK;
if (cchr9 < IZB) if (cchr9 < IZB)
return; return;
@ -1116,7 +1116,7 @@ class MapScanner
if (z > 128) if (z > 128)
return; return;
char cchr9 = (char)(city.map[ypos][xpos] & LOMASK); int cchr9 = cchr & LOMASK;
if (cchr9 == FREEZ) if (cchr9 == FREEZ)
{ {
if (pop < 8) if (pop < 8)