FS13585: Display corruption in robotfindskitten game

When you're using a "large" screen device, and the message doesn't need
to scroll, parts of the previous mesage are left behind.

Work around this by explicitly clearing the messgage with a loooong
blank string.

Change-Id: I02f7789eb6567e92ecca174c40dabc4b580ac045
This commit is contained in:
Solomon Peachy 2025-09-06 12:44:11 -04:00
parent e4e50e36f1
commit d51d49550c

View file

@ -664,6 +664,8 @@ static void play_game()
input = pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts,
ARRAYLEN(plugin_contexts));
}
message(" ");
message("Bye!");
refresh();
}
@ -703,12 +705,6 @@ static void process_input(int input)
return; /*Do nothing.*/
}
/*
* Clear textline
* disabled because it breaks the scrolling for some reason
*/
/* rb->lcd_puts_scroll(0, ADV_ROW, " "); */
/*Check for collision*/
if (screen[check_x][check_y] != EMPTY)
{
@ -724,6 +720,7 @@ static void process_input(int input)
rfkpause();
break;
default: /*We hit a bogus object; print its message.*/
message(" ");
message(messages[bogus_messages[screen[check_x][check_y]-2]]);
refresh();
break;
@ -776,7 +773,7 @@ static void play_animation(int input)
{
int counter;
/* Clear the message line */
message(" ");
message(" ");
struct screen_object left;
struct screen_object right;
/*The grand cinema scene.*/
@ -810,6 +807,7 @@ static void play_animation(int input)
rb->sleep(HZ);
}
message(" ");
message("You found kitten! Way to go, robot!");
refresh();
finish(0);