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:
parent
3d2eaa62ff
commit
2c517c476b
1 changed files with 2 additions and 1 deletions
|
@ -357,7 +357,8 @@ public class TileConstants
|
||||||
|
|
||||||
static boolean isRiverEdge(int tile)
|
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)
|
public static boolean isDozeable(int tile)
|
||||||
|
|
Reference in a new issue