Still having trouble tracking down a bug related to games that seem to
end twice. This should help. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3008 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: GameObject.java,v 1.18 2004/03/06 11:29:19 mdb Exp $
|
||||
// $Id: GameObject.java,v 1.19 2004/05/19 01:24:10 ray Exp $
|
||||
|
||||
package com.threerings.parlor.game;
|
||||
|
||||
@@ -199,6 +199,10 @@ public class GameObject extends PlaceObject
|
||||
*/
|
||||
public void setState (int state)
|
||||
{
|
||||
if ((state == GAME_OVER || state == CANCELLED) &&
|
||||
(this.state == GAME_OVER || this.state == CANCELLED)) {
|
||||
Thread.dumpStack();
|
||||
}
|
||||
requestAttributeChange(STATE, new Integer(state));
|
||||
this.state = state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user