fixed some timing errors

This commit is contained in:
BetaSteward 2010-10-29 01:59:45 +00:00
parent 875614b96c
commit 93120eedea
3 changed files with 13 additions and 5 deletions

View file

@ -56,12 +56,15 @@ public class GameWatcher {
this.gameId = gameId;
}
public void init(final GameView gameView) {
public boolean init(final GameView gameView) {
if (!killed) {
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null)
if (session != null) {
session.fireCallback(new ClientCallback("gameInit", gameView));
return true;
}
}
return false;
}
public void update(final GameView gameView) {