Skip to content

Commit 9180996

Browse files
authored
Merge pull request #2061 from Semphriss/integration-hide
Hiding level names from integrations also hides names when testing
2 parents faa5463 + 4f2643b commit 9180996

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/supertux/game_session.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -459,14 +459,11 @@ IntegrationStatus
459459
GameSession::get_status() const
460460
{
461461
IntegrationStatus status;
462-
status.m_details.push_back("Playing");
463-
if (get_current_level().is_worldmap())
462+
status.m_details.push_back(Editor::current() ? "Testing" : "Playing");
463+
if (!Editor::current() || !g_config->hide_editor_levelnames)
464464
{
465-
status.m_details.push_back("In worldmap: " + get_current_level().get_name());
466-
}
467-
else
468-
{
469-
status.m_details.push_back("In level: " + get_current_level().get_name());
465+
const std::string label = get_current_level().is_worldmap() ? "In worldmap: " : "In level: ";
466+
status.m_details.push_back(label + get_current_level().get_name());
470467
}
471468
return status;
472469
}

0 commit comments

Comments
 (0)