1.1 --- a/Source/Game.m Tue Jul 08 20:32:52 2008 -0700
1.2 +++ b/Source/Game.m Wed Jul 09 17:07:45 2008 -0700
1.3 @@ -219,6 +219,23 @@
1.4 }
1.5
1.6
1.7 +- (BOOL) okToMove
1.8 +{
1.9 + Turn *latest = self.latestTurn;
1.10 + if( latest.player.local && latest.status < kTurnComplete ) {
1.11 + // Automatically skip from latest finished turn, since board state is the same:
1.12 + unsigned latestTurnNo = self.maxTurnNo;
1.13 + if( _currentTurnNo==latestTurnNo-1 ) {
1.14 + NSLog(@"okToMove: skipping from turn %i to %i",_currentTurnNo,latestTurnNo);
1.15 + self.currentTurnNo = latestTurnNo;
1.16 + }
1.17 + if( _currentTurnNo==latestTurnNo )
1.18 + return YES;
1.19 + }
1.20 + return NO;
1.21 +}
1.22 +
1.23 +
1.24 - (void) endTurn
1.25 {
1.26 Turn *curTurn = self.currentTurn;