From: <aki...@us...> - 2006-12-18 21:24:13
|
Revision: 1186 http://svn.sourceforge.net/gridarta/?rev=1186&view=rev Author: akirschbaum Date: 2006-12-18 13:24:05 -0800 (Mon, 18 Dec 2006) Log Message: ----------- Remove useless comments. Modified Paths: -------------- trunk/crossfire/src/cfeditor/CopyBuffer.java trunk/daimonin/src/daieditor/CopyBuffer.java Modified: trunk/crossfire/src/cfeditor/CopyBuffer.java =================================================================== --- trunk/crossfire/src/cfeditor/CopyBuffer.java 2006-12-18 20:54:56 UTC (rev 1185) +++ trunk/crossfire/src/cfeditor/CopyBuffer.java 2006-12-18 21:24:05 UTC (rev 1186) @@ -195,17 +195,14 @@ final Point startp = mapControl.getMapCursor().getLocation(); assert startp != null; - // cycle through all tile coordinates which are highlighted: mapControl.getMapModel().beginTransaction("Paste"); // TODO: I18N/L10N final Point pos = new Point(); assert copyMap != null; for (final MapSquare<GameObject> square : copyMap) { pos.setLocation(startp.x + square.getMapX(), startp.y + square.getMapY()); - // paste the archs if on the map: if (mapControl.isPointValid(pos)) { for (final GameObject gameObject : square) { if (!gameObject.isMulti()) { - // read gameObject from buffer and stick in on the map final GameObject clone = gameObject.createClone(pos.x, pos.y); mapControl.addArchObjectToMap(clone); } @@ -217,7 +214,7 @@ for (final MapSquare<GameObject> square : copyMapCtrl.getMapModel()) { pos.setLocation(startp); pos.translate(square.getMapX(), square.getMapY()); - if (mapControl.isPointValid(pos)) { // paste the archs if on the map: + if (mapControl.isPointValid(pos)) { for (final GameObject gameObject : square) { if (gameObject.isMulti()) { addArchToMap(mapControl, gameObject, pos, true, false); Modified: trunk/daimonin/src/daieditor/CopyBuffer.java =================================================================== --- trunk/daimonin/src/daieditor/CopyBuffer.java 2006-12-18 20:54:56 UTC (rev 1185) +++ trunk/daimonin/src/daieditor/CopyBuffer.java 2006-12-18 21:24:05 UTC (rev 1186) @@ -195,17 +195,14 @@ final Point startp = mapControl.getMapCursor().getLocation(); assert startp != null; - // cycle through all tile coordinates which are highlighted: mapControl.getMapModel().beginTransaction("Paste"); // TODO: I18N/L10N final Point pos = new Point(); assert copyMap != null; for (final MapSquare<GameObject> square : copyMap) { pos.setLocation(startp.x + square.getMapX(), startp.y + square.getMapY()); - // paste the archs if on the map: if (mapControl.isPointValid(pos)) { for (final GameObject gameObject : square) { if (!gameObject.isMulti()) { - // read gameObject from buffer and stick in on the map addArchToMap(mapControl, gameObject, pos, true, false); // XXX Oh oh this looks BOGUS - shouldn't the object be cloned?! } } @@ -216,7 +213,7 @@ for (final MapSquare<GameObject> square : copyMapCtrl.getMapModel()) { pos.setLocation(startp); pos.translate(square.getMapX(), square.getMapY()); - if (mapControl.isPointValid(pos)) { // paste the archs if on the map: + if (mapControl.isPointValid(pos)) { for (final GameObject gameObject : square) { if (gameObject.isMulti()) { addArchToMap(mapControl, gameObject, pos, true, false); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |