diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-16 21:56:08 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-16 21:56:08 +0000 |
commit | 4d6374c9236b93e0bd457f99944164fc493d1120 (patch) | |
tree | ff9630fcef66e63c61cc0a74e97f21220e668f75 /apps/plugins/sokoban.c | |
parent | 2c643b9f3e22ee07f7949a5471f726758dc40841 (diff) | |
download | rockbox-4d6374c9236b93e0bd457f99944164fc493d1120.tar.gz rockbox-4d6374c9236b93e0bd457f99944164fc493d1120.zip |
Get rid of the 'center' parameter for splashes. There were only 2 of almost 500 splashes which were not centered.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12807 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/sokoban.c')
-rw-r--r-- | apps/plugins/sokoban.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/sokoban.c b/apps/plugins/sokoban.c index 7941e97585..6892e83f31 100644 --- a/apps/plugins/sokoban.c +++ b/apps/plugins/sokoban.c | |||
@@ -460,7 +460,7 @@ static int read_levels(int initialize_count) | |||
460 | endpoint += NUM_BUFFERED_BOARDS; | 460 | endpoint += NUM_BUFFERED_BOARDS; |
461 | 461 | ||
462 | if ((fd = rb->open(LEVELS_FILE, O_RDONLY)) < 0) { | 462 | if ((fd = rb->open(LEVELS_FILE, O_RDONLY)) < 0) { |
463 | rb->splash(HZ*2, true, "Unable to open %s", LEVELS_FILE); | 463 | rb->splash(HZ*2, "Unable to open %s", LEVELS_FILE); |
464 | return -1; | 464 | return -1; |
465 | } | 465 | } |
466 | 466 | ||
@@ -472,7 +472,7 @@ static int read_levels(int initialize_count) | |||
472 | * a mixed unix and dos CR/LF file format, I'm not going to | 472 | * a mixed unix and dos CR/LF file format, I'm not going to |
473 | * do a precise check */ | 473 | * do a precise check */ |
474 | if (len < COLS) { | 474 | if (len < COLS) { |
475 | rb->splash(HZ*2, true, "Error in levels file: short line"); | 475 | rb->splash(HZ*2, "Error in levels file: short line"); |
476 | return -1; | 476 | return -1; |
477 | } | 477 | } |
478 | if (level_count >= buffered_boards.low && level_count < endpoint) { | 478 | if (level_count >= buffered_boards.low && level_count < endpoint) { |
@@ -487,8 +487,7 @@ static int read_levels(int initialize_count) | |||
487 | level_count++; | 487 | level_count++; |
488 | if (level_count >= endpoint && !initialize_count) break; | 488 | if (level_count >= endpoint && !initialize_count) break; |
489 | if (level_count && row != ROWS) { | 489 | if (level_count && row != ROWS) { |
490 | rb->splash(HZ*2, true, | 490 | rb->splash(HZ*2, "Error in levels file: short board"); |
491 | "Error in levels file: short board"); | ||
492 | return -1; | 491 | return -1; |
493 | } | 492 | } |
494 | row = 0; | 493 | row = 0; |