fix automap marks in non-follow mode (#1146)

This commit is contained in:
Roman Fomin 2023-07-13 23:40:56 +07:00 committed by GitHub
parent ef1362f613
commit 5904a4edfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,17 +380,8 @@ static void AM_addMark(void)
markpointnum_max*2 : 16) * sizeof(*markpoints),
PU_STATIC, 0);
// [crispy] keep the map static if not following the player
if (!followplayer)
{
markpoints[markpointnum].x = plr->mo->x >> FRACTOMAPBITS;
markpoints[markpointnum].y = plr->mo->y >> FRACTOMAPBITS;
}
else
{
markpoints[markpointnum].x = m_x + m_w/2;
markpoints[markpointnum].y = m_y + m_h/2;
}
markpointnum++;
}