Use the new accessor methods for getting base tile ids from the model.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1370 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: AutoFringer.java,v 1.12 2002/05/09 16:48:34 mdb Exp $
|
// $Id: AutoFringer.java,v 1.13 2002/05/17 19:07:04 ray Exp $
|
||||||
|
|
||||||
package com.threerings.miso.tile;
|
package com.threerings.miso.tile;
|
||||||
|
|
||||||
@@ -99,7 +99,7 @@ public class AutoFringer
|
|||||||
int wid = scene.width;
|
int wid = scene.width;
|
||||||
|
|
||||||
// get the tileset id of the base tile we are considering
|
// get the tileset id of the base tile we are considering
|
||||||
int underset = scene.baseTileIds[row * wid + col] >> 16;
|
int underset = scene.getBaseTile(col, row) >> 16;
|
||||||
|
|
||||||
// walk through our influence tiles
|
// walk through our influence tiles
|
||||||
for (int y=Math.max(0, row - 1); y < Math.min(hei, row + 2); y++) {
|
for (int y=Math.max(0, row - 1); y < Math.min(hei, row + 2); y++) {
|
||||||
@@ -111,7 +111,7 @@ public class AutoFringer
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int baseset = scene.baseTileIds[y * wid + x] >> 16;
|
int baseset = scene.getBaseTile(x, y) >> 16;
|
||||||
|
|
||||||
int pri = _fringeconf.fringesOn(baseset, underset);
|
int pri = _fringeconf.fringesOn(baseset, underset);
|
||||||
if (pri == -1) {
|
if (pri == -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user