Skip to content

Commit

Permalink
hopefully fix NO_CUSTOM_LEVELS build
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyTally committed Jan 18, 2023
1 parent 05b4855 commit e7a0fe1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion desktop_version/src/Render.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,12 @@ void gamerender(void)
graphics.render_roomname(roomname, roomname_r, roomname_g, roomname_b);
}

if (game.coins() > 0 || (map.custommode && (cl.numcoins() > 0))) {
bool show_coins = game.coins() > 0;
#ifndef NO_CUSTOM_LEVELS
show_coins = show_coins || (map.custommode && (cl.numcoins() > 0));
#endif

if (show_coins) {
std::string coinstring = help.String(game.coins());

int color = 255 - help.glow / 2;
Expand Down

0 comments on commit e7a0fe1

Please sign in to comment.