Fixed map bug

main 1.0
DodoBirb 4 years ago
parent a640076d3f
commit 0b0eef07a6

@ -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)
}
}
}

Loading…
Cancel
Save