Checking if (foo = bar) is begging for disaster.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@708 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -269,7 +269,8 @@ public class DropSprite extends Sprite
|
|||||||
*/
|
*/
|
||||||
public void setBouncing (boolean bouncing)
|
public void setBouncing (boolean bouncing)
|
||||||
{
|
{
|
||||||
if (_bouncing = bouncing) {
|
_bouncing = bouncing;
|
||||||
|
if (_bouncing) {
|
||||||
// if we've activated bouncing, shift the sprite slightly to
|
// if we've activated bouncing, shift the sprite slightly to
|
||||||
// illustrate its new state
|
// illustrate its new state
|
||||||
shiftForBounce();
|
shiftForBounce();
|
||||||
|
|||||||
@@ -480,8 +480,8 @@ public class EditorScenePanel extends StageScenePanel
|
|||||||
boolean changed;
|
boolean changed;
|
||||||
|
|
||||||
if (_ptile instanceof ObjectTile) {
|
if (_ptile instanceof ObjectTile) {
|
||||||
if (changed = updateObjectTileCoords(
|
changed = updateObjectTileCoords(x, y, _ppos, (ObjectTile)_ptile);
|
||||||
x, y, _ppos, (ObjectTile)_ptile)) {
|
if (changed) {
|
||||||
_pscobj.relocateObject(_metrics, _ppos.x, _ppos.y);
|
_pscobj.relocateObject(_metrics, _ppos.x, _ppos.y);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user