Return a boolean from setBaseTile to indicate if the tile was actually updated
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@585 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -570,11 +570,13 @@ public class EditorScenePanel extends StageScenePanel
|
|||||||
/**
|
/**
|
||||||
* Sets a base tile at the specified position in the scene (in tile
|
* Sets a base tile at the specified position in the scene (in tile
|
||||||
* coordinates).
|
* coordinates).
|
||||||
|
*
|
||||||
|
* @return - if the tile was successfully set
|
||||||
*/
|
*/
|
||||||
public void setBaseTile (int fqTileId, int x, int y)
|
public boolean setBaseTile (int fqTileId, int x, int y)
|
||||||
{
|
{
|
||||||
if (!_model.setBaseTile(fqTileId, x, y)) {
|
if (!_model.setBaseTile(fqTileId, x, y)) {
|
||||||
return;
|
return false;
|
||||||
}
|
}
|
||||||
getBlock(x, y).updateBaseTile(fqTileId, x, y);
|
getBlock(x, y).updateBaseTile(fqTileId, x, y);
|
||||||
|
|
||||||
@@ -584,6 +586,7 @@ public class EditorScenePanel extends StageScenePanel
|
|||||||
getBlock(fx, fy).updateFringe(fx, fy);
|
getBlock(fx, fy).updateFringe(fx, fy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user