~mchaten/gg/main

« back to all changes in this revision

Viewing changes to main/TurnBasedGameFramework/src/net/sf/goodgame/tbgf/client/TurnBasedGameClient.java

  • Committer: mchaten
  • Date: 2009-04-22 07:06:42 UTC
  • Revision ID: mchaten@gmail.com-20090422070642-kiscs52mfrikfbn5
Tags: 0.2b1
Multiple Fixes
Can't cancel out of a new game setup 
Can't have a new game with no name, and all spaces are trimmed out of new names for games
GPL Warnings for admin classes, GUIDispatcher and LoginPanel

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
        try {
146
146
            GameOptions options = GameOptions.getGameOptions(message, read);
147
147
            options = setupNewGame(options);
 
148
            if(options == null) {
 
149
                leaveGame();
 
150
                return;
 
151
            }
148
152
            send(ClientToServerProtocol.setupGame,options.getNetworkMessage());
149
153
        } catch (InvalidMessageException ex) {
150
154
            Logger.getLogger(TurnBasedGameClient.class.getName()).log(Level.SEVERE, null, ex);