Fix some stylistic stuff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3817 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -322,8 +322,10 @@ public abstract class PuzzleController extends GameController
|
|||||||
// documentation inherited
|
// documentation inherited
|
||||||
public void attributeChanged (AttributeChangedEvent event)
|
public void attributeChanged (AttributeChangedEvent event)
|
||||||
{
|
{
|
||||||
|
String name = event.getName();
|
||||||
|
|
||||||
// deal with game state changes
|
// deal with game state changes
|
||||||
if (event.getName().equals(PuzzleObject.STATE)) {
|
if (name.equals(PuzzleObject.STATE)) {
|
||||||
switch (event.getIntValue()) {
|
switch (event.getIntValue()) {
|
||||||
case PuzzleObject.IN_PLAY:
|
case PuzzleObject.IN_PLAY:
|
||||||
// we have to postpone all game starting activity until the
|
// we have to postpone all game starting activity until the
|
||||||
@@ -360,7 +362,8 @@ public abstract class PuzzleController extends GameController
|
|||||||
super.attributeChanged(event);
|
super.attributeChanged(event);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if (event.getName().equals(PuzzleObject.ROUND_ID)) {
|
|
||||||
|
} else if (name.equals(PuzzleObject.ROUND_ID)) {
|
||||||
// Need to clear out stale events. If we don't, we could send
|
// Need to clear out stale events. If we don't, we could send
|
||||||
// events that claim to be from the new round that are actually
|
// events that claim to be from the new round that are actually
|
||||||
// from the old round.
|
// from the old round.
|
||||||
|
|||||||
Reference in New Issue
Block a user