1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-20 03:54:47 +00:00

correct map geometry displayed in welcome message, and both displayed in EwG

This commit is contained in:
Zeno Rogue 2022-12-16 00:41:17 +01:00
parent db43ea9de8
commit e1ce20cabe
2 changed files with 10 additions and 2 deletions

View File

@ -507,8 +507,8 @@ EX void showQuotientConfig3() {
}
#endif
EX string geometry_name() {
switch(ginf[geometry].cclass) {
EX string geometry_name(eGeometryClass gc) {
switch(gc) {
case gcHyperbolic:
return XLAT("hyperbolic") + dim_name();
@ -541,6 +541,13 @@ EX string geometry_name() {
return "?";
}
EX string geometry_name() {
if(embedded_plane)
return geometry_name(geom3::mgclass()) + " @ " + geometry_name(geom3::ggclass());
else
return geometry_name(ginf[geometry].cclass);
};
EX void select_quotient_screen() {
cmode = sm::SIDE | sm::MAYDARK;
gamescreen();

View File

@ -77,6 +77,7 @@ EX hookset<bool()> hooks_welcome_message;
/** \brief Print the welcome message during the start of game. Depends on the current mode and other settings. */
EX void welcomeMessage() {
if(callhandlers(false, hooks_welcome_message)) return;
if(embedded_plane) return IPF(welcomeMessage());
#if CAP_TOUR
else if(tour::on) return; // displayed by tour
#endif