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();
@@ -328,7 +329,7 @@ public class DropSprite extends Sprite
// Log.info("getPercentDone [timestamp=" + timestamp +
// ", rowstamp=" + _rowstamp + ", msecs=" + msecs +
// ", travpix=" + travpix + ", pctdone=" + pctdone +
// ", travpix=" + travpix + ", pctdone=" + pctdone +
// ", vel=" + _vel + "].");
return pctdone;