From 865c5def8bb8af0447c87ed2f99bbdbc430c7a7e Mon Sep 17 00:00:00 2001 From: Charlie Groves Date: Fri, 25 Apr 2008 00:45:43 +0000 Subject: [PATCH] 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 --- .../threerings/stage/tools/editor/EditorScenePanel.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/stage/tools/editor/EditorScenePanel.java b/src/java/com/threerings/stage/tools/editor/EditorScenePanel.java index b5b7fbb7..d3c594d1 100644 --- a/src/java/com/threerings/stage/tools/editor/EditorScenePanel.java +++ b/src/java/com/threerings/stage/tools/editor/EditorScenePanel.java @@ -570,11 +570,13 @@ public class EditorScenePanel extends StageScenePanel /** * Sets a base tile at the specified position in the scene (in tile * 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)) { - return; + return false; } getBlock(x, y).updateBaseTile(fqTileId, x, y); @@ -584,6 +586,7 @@ public class EditorScenePanel extends StageScenePanel getBlock(fx, fy).updateFringe(fx, fy); } } + return true; } /**