mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Translate hardest room at display time instead of at time of death
The hardest room used to be stored as a room name in whatever language it was in when you last died enough times to break the record (before localization, that was always English). Even after localization became a thing we could get away with this since we only had a single font, but now we might have actual question marks appearing when the new font doesn't support characters from the old language. Therefore, this commit adds more info about the hardest room to save files - everything that is needed to know in order to do the translation at display time. These are hardestroom_x and hardestroom_y for the room coordinates, as well as hardestroom_specialname to mark special names, in addition to changing the stored room name back to English. I've also added hardestroom_finalstretch in case we later decide to drop the English name as a key and rely on just the coordinates (even though I think that change itself would be more complicated than any simplification it would accomplish, and I don't think it's necessary, but better to have it if we do need it later)
This commit is contained in:
committed by
Misa Elizabeth Kai
parent
e0e902d717
commit
3c4ed36418
@@ -3187,8 +3187,12 @@ void scriptclass::hardreset(void)
|
||||
game.translator_cutscene_test = false;
|
||||
|
||||
game.totalflips = 0;
|
||||
game.hardestroom = loc::gettext_roomname(false, 13, 5, "Welcome Aboard", false);
|
||||
game.hardestroom = "Welcome Aboard";
|
||||
game.hardestroomdeaths = 0;
|
||||
game.hardestroom_x = 13;
|
||||
game.hardestroom_y = 5;
|
||||
game.hardestroom_specialname = false;
|
||||
game.hardestroom_finalstretch = false;
|
||||
game.currentroomdeaths=0;
|
||||
|
||||
game.swnmode = false;
|
||||
|
||||
Reference in New Issue
Block a user