From e8f868482f0afa7e25ec7e670f6ca3b1ebf870b3 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Mon, 12 Sep 2005 22:27:39 +0000 Subject: [PATCH] remove debug messages from LoadSave git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@122 127b21dd-08f5-0310-b4b7-95ae10353056 --- LoadSave.m | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/LoadSave.m b/LoadSave.m index 9cbeaf9f..2d7fe8c6 100644 --- a/LoadSave.m +++ b/LoadSave.m @@ -1,3 +1,4 @@ +/* */ #ifdef LOADSAVEGUI // // LoadSave.m @@ -121,7 +122,6 @@ // figure out what page we need to be on page=highlightIdx/NUMROWS; highlightRowOnPage=highlightIdx % NUMROWS + STARTROW; - NSLog(@"Page=%d Highlight=%d Cdr index=%d", page, highlightRowOnPage, highlightIdx); } // We now know for certain what page we're on - @@ -195,7 +195,6 @@ { int guiSelectedRow=[gui selectedRow]; idx=(guiSelectedRow - STARTROW) + (currentPage * NUMROWS); - NSLog(@"idx = %d", idx); if(guiSelectedRow != MOREROW && guiSelectedRow != BACKROW) { [self showCommanderShip: idx]; @@ -210,7 +209,8 @@ // Enter pressed - find the commander name underneath. if ([gameView isDown:13]) { - NSLog(@"Row = %d", [gui selectedRow]); + NSDictionary *cdr; + NSString *filename; switch ([gui selectedRow]) { case BACKROW: @@ -220,16 +220,14 @@ [gameView supressKeysUntilKeyUp]; break; case MOREROW: - NSLog(@"Plus one page"); [gui clear]; currentPage++; [self lsCommanders: gui pageNumber: currentPage highlightName: nil]; [gameView supressKeysUntilKeyUp]; break; default: - NSLog(@"Loading idx = %d", idx); - NSDictionary *cdr=[cdrDetailArray objectAtIndex: idx]; - NSString *filename=[NSString stringWithFormat: + cdr=[cdrDetailArray objectAtIndex: idx]; + filename=[NSString stringWithFormat: @"%@.oolite-save", (NSString *)[cdr objectForKey:@"player_name"]]; return filename; }