cleanup: use named constants in isRiverEdge

instead of hard-coded numbers

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@891 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-12-06 02:48:00 +00:00
parent 3d2eaa62ff
commit 2c517c476b

View file

@ -357,7 +357,8 @@ public class TileConstants
static boolean isRiverEdge(int tile)
{
return (tile & LOMASK) > 4 && (tile & LOMASK) < 21;
tile &= LOMASK;
return tile >= FIRSTRIVEDGE && tile <= LASTRIVEDGE;
}
public static boolean isDozeable(int tile)