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:
Dave Hoover
2008-08-05 21:13:43 +00:00
parent b52db86905
commit 6c91e7cb96
2 changed files with 12 additions and 11 deletions
@@ -269,7 +269,8 @@ public class DropSprite extends Sprite
*/
public void setBouncing (boolean bouncing)
{
if (_bouncing = bouncing) {
_bouncing = bouncing;
if (_bouncing) {
// if we've activated bouncing, shift the sprite slightly to
// illustrate its new state
shiftForBounce();
@@ -480,8 +480,8 @@ public class EditorScenePanel extends StageScenePanel
boolean changed;
if (_ptile instanceof ObjectTile) {
if (changed = updateObjectTileCoords(
x, y, _ppos, (ObjectTile)_ptile)) {
changed = updateObjectTileCoords(x, y, _ppos, (ObjectTile)_ptile);
if (changed) {
_pscobj.relocateObject(_metrics, _ppos.x, _ppos.y);
}
} else {