From e7a0fe1a959eb61a4c02ff65c10a9513f3993ddd Mon Sep 17 00:00:00 2001 From: AllyTally Date: Mon, 31 Oct 2022 00:15:04 -0300 Subject: [PATCH] hopefully fix NO_CUSTOM_LEVELS build --- desktop_version/src/Render.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 5c7d475901..7d555d1c8f 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -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;