Translate NDM hardest room on-the-fly

Otherwise, cycling languages through CTRL+F8 would result in mismatched
languages.
This commit is contained in:
Misa
2024-01-21 18:32:18 -08:00
committed by Misa Elizabeth Kai
parent 531b151d12
commit 3d61f9067b
3 changed files with 20 additions and 2 deletions

View File

@@ -221,6 +221,10 @@ void Game::init(void)
nocutscenes = false;
ndmresultcrewrescued = 0;
ndmresulttrinkets = 0;
ndmresulthardestroom.clear();
ndmresulthardestroom_x = hardestroom_x;
ndmresulthardestroom_y = hardestroom_y;
ndmresulthardestroom_specialname = false;
customcol=0;
@@ -7798,7 +7802,10 @@ void Game::copyndmresults(void)
{
ndmresultcrewrescued = crewrescued();
ndmresulttrinkets = trinkets();
ndmresulthardestroom = loc::gettext_roomname(false, hardestroom_x, hardestroom_y, hardestroom.c_str(), hardestroom_specialname);
ndmresulthardestroom = hardestroom;
ndmresulthardestroom_x = hardestroom_x;
ndmresulthardestroom_y = hardestroom_y;
ndmresulthardestroom_specialname = hardestroom_specialname;
SDL_memcpy(ndmresultcrewstats, crewstats, sizeof(ndmresultcrewstats));
}