From 0b0eef07a62a2693f886d3d3c5f9cc7bbad41250 Mon Sep 17 00:00:00 2001 From: DodoBirb Date: Thu, 7 Jul 2022 16:17:31 +1000 Subject: [PATCH] Fixed map bug --- Export_Code/gml_Script_draw_gui.gml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Export_Code/gml_Script_draw_gui.gml b/Export_Code/gml_Script_draw_gui.gml index 11ef88f..ad95104 100644 --- a/Export_Code/gml_Script_draw_gui.gml +++ b/Export_Code/gml_Script_draw_gui.gml @@ -1,4 +1,4 @@ -var scaleMult, f, arrList, ID, _x, _y, xoffNew, lowestPosX, lowestPosY, enemyCount, i, arrData, xDiff, yDiff, sax, spectator, playerState, lowestDist, dist, combatState; +var scaleMult, f, arrList, ID, _x, _y, xoffNew, lowestPosX, lowestPosY, enemyCount, i, arrData, xDiff, yDiff, sax, spectator, playerState, lowestDist, dist, combatState, drawn; if (global.classicmode == 0 && global.opshowhud) { xoff = 33 @@ -549,6 +549,7 @@ if (global.classicmode == 0 && global.opshowhud) spectator = arrData[5] playerState = arrData[6] combatState = arrData[7] + drawn = 0 if global.spectator { if (!sax) @@ -572,9 +573,12 @@ if (global.classicmode == 0 && global.opshowhud) { if combatState draw_sprite_ext(oControl.MultitroidMapIcon, (arrData[0] - 1), (((276 + widescreen_space) + 16) - (xDiff * 8)), (12 - (yDiff * 8)), 1, 1, direction, c_white, oControl.malpha) + drawn = 1 } } } + if (drawn == 0 && sax == global.sax) + draw_sprite_ext(oControl.MultitroidMapIcon, (arrData[0] - 1), (((276 + widescreen_space) + 16) - (xDiff * 8)), (12 - (yDiff * 8)), 1, 1, direction, c_white, oControl.malpha) } } }