don't apply linegap to certain special textboxes

level complete, game complete and "You have rescued a crew member!"
This commit is contained in:
TerryCavanagh
2024-02-01 20:02:06 +01:00
committed by Terry Cavanagh
parent cc1528aacc
commit 8b73a38ed2
3 changed files with 10 additions and 0 deletions

View File

@@ -698,6 +698,7 @@ void Game::levelcomplete_textbox(void)
graphics.textboxprintflags(PR_FONT_8X8);
graphics.textboxcenterx();
graphics.setimage(TEXTIMAGE_LEVELCOMPLETE);
graphics.setlinegap(0);
}
void Game::crewmate_textbox(const int color)
@@ -727,6 +728,7 @@ void Game::crewmate_textbox(const int color)
graphics.textboxpad(SDL_ceilf(5/spaces_per_8), SDL_ceilf(2/spaces_per_8));
graphics.textboxcenterx();
graphics.addsprite(14, 12 + extra_cjk_height/2, 0, color);
graphics.setlinegap(0);
}
void Game::remaining_textbox(void)
@@ -2897,6 +2899,7 @@ void Game::updatestate(void)
graphics.textboxprintflags(PR_FONT_8X8);
graphics.textboxcenterx();
graphics.setimage(TEXTIMAGE_GAMECOMPLETE);
graphics.setlinegap(0);
break;
case 3502:
{