diff options
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; |