equal
deleted
inserted
replaced
394 } |
394 } |
395 break; |
395 break; |
396 case 'q': |
396 case 'q': |
397 // game ended, can remove the savefile and the trailing overlay (when dualhead) |
397 // game ended, can remove the savefile and the trailing overlay (when dualhead) |
398 [self gameHasEndedWithStats:statsArray]; |
398 [self gameHasEndedWithStats:statsArray]; |
399 [statsArray release]; |
|
400 break; |
399 break; |
401 case 'Q': |
400 case 'Q': |
402 // game exited but not completed, nothing to do (just don't save the message) |
401 // game exited but not completed, nothing to do (just don't save the message) |
403 break; |
402 break; |
404 default: |
403 default: |
406 break; |
405 break; |
407 } |
406 } |
408 } |
407 } |
409 DLog(@"Engine exited, ending thread"); |
408 DLog(@"Engine exited, ending thread"); |
410 [self.stream close]; |
409 [self.stream close]; |
|
410 [self.stream release]; |
|
411 [statsArray release]; |
411 |
412 |
412 // Close the client socket |
413 // Close the client socket |
413 SDLNet_TCP_Close(csd); |
414 SDLNet_TCP_Close(csd); |
414 SDLNet_Quit(); |
415 SDLNet_Quit(); |
415 |
416 |