From 74fb74c39f2a6b66d6208392116731f211cbfb07 Mon Sep 17 00:00:00 2001 From: AllyTally Date: Tue, 17 Jan 2023 21:29:38 -0400 Subject: [PATCH] Strip out `ct` for coins --- desktop_version/src/Editor.cpp | 3 +-- desktop_version/src/Render.cpp | 12 +++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/desktop_version/src/Editor.cpp b/desktop_version/src/Editor.cpp index 5d2fdd9839..1b28520529 100644 --- a/desktop_version/src/Editor.cpp +++ b/desktop_version/src/Editor.cpp @@ -701,8 +701,7 @@ void editorrender(void) fillboxabs((customentities[i].x*8)- (ed.levx*40*8),(customentities[i].y*8)- (ed.levy*30*8),32,8,graphics.getRGB(255,255,255)); break; case 8: // Coin - graphics.huetilesetcol(8); - graphics.drawhuetile((customentities[i].x * 8) - (ed.levx * 40 * 8), (customentities[i].y * 8) - (ed.levy * 30 * 8), 48); + graphics.drawhuetile((customentities[i].x * 8) - (ed.levx * 40 * 8), (customentities[i].y * 8) - (ed.levy * 30 * 8), 48, graphics.huetilegetcol(8)); fillboxabs((customentities[i].x * 8) - (ed.levx * 40 * 8), (customentities[i].y * 8) - (ed.levy * 30 * 8), 8, 8, graphics.getRGB(255, 164, 164)); break; case 9: //Shiny Trinket diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 7d555d1c8f..0c9fde7b1d 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -1955,15 +1955,13 @@ void gamerender(void) graphics.bprint(304 - coinstring.length() * 8, 231, coinstring, color, color, 196); if (!graphics.notextoutline) { - graphics.setcolreal(graphics.getRGB(0, 0, 0)); - graphics.drawhuetile(310, 230, 48); - graphics.drawhuetile(312, 230, 48); - graphics.drawhuetile(311, 229, 48); - graphics.drawhuetile(311, 231, 48); + graphics.drawhuetile(310, 230, 48, graphics.getRGB(0, 0, 0)); + graphics.drawhuetile(312, 230, 48, graphics.getRGB(0, 0, 0)); + graphics.drawhuetile(311, 229, 48, graphics.getRGB(0, 0, 0)); + graphics.drawhuetile(311, 231, 48, graphics.getRGB(0, 0, 0)); } - graphics.setcolreal(graphics.getRGB(color, color, 196)); - graphics.drawhuetile(311, 230, 48); + graphics.drawhuetile(311, 230, 48, graphics.getRGB(color, color, 196)); } if (map.roomtexton)