Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Naxrin authored Aug 12, 2024
1 parent b29dd08 commit e244e34
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ class $modify(MyPauseLayer, PauseLayer) {
menu_rb->updateLayout();

// creator name
auto author = Level->m_creatorName;
std::string robtop = "RobTop";
if (Level->m_levelType == GJLevelType::Local) author = robtop; // official

std::string author = Level->m_levelType == GJLevelType::Local ? "RobTop" : Level->m_creatorName;
std::string by = "By ";
auto tlb_author = CCLabelBMFont::create((by + author).c_str(), "goldFont.fnt");
tlb_author->setScale(0.8);
Expand Down

0 comments on commit e244e34

Please sign in to comment.