Fixed Players failing to show on minimap

pull/9/head
DodoBirb 4 years ago
parent e415489bcc
commit e87cce86b6

@ -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, playerVisible;
if (global.classicmode == 0 && global.opshowhud)
{
xoff = 33
@ -568,11 +568,15 @@ if (global.classicmode == 0 && global.opshowhud)
{
if ((!spectator) || sax)
{
playerVisible = 0
if (playerState != 1)
{
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)
playerVisible = 1
}
if ((!playerVisible) && global.sax == 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