Use tag instead of angle for polyobject spawn points and anchors

This commit is contained in:
MascaraSnake 2020-01-25 10:15:20 +01:00
parent 37375972e2
commit 5656d77c82
2 changed files with 6 additions and 3 deletions

View File

@ -708,9 +708,9 @@ static void Polyobj_moveToSpawnSpot(mapthing_t *anchor)
vertex_t dist, sspot;
size_t i;
if (!(po = Polyobj_GetForNum(anchor->angle)))
if (!(po = Polyobj_GetForNum(anchor->tag)))
{
CONS_Debug(DBG_POLYOBJ, "Bad polyobject %d for anchor point\n", anchor->angle);
CONS_Debug(DBG_POLYOBJ, "Bad polyobject %d for anchor point\n", anchor->tag);
return;
}
@ -1562,7 +1562,7 @@ void Polyobj_InitLevel(void)
{
qitem = (mobjqitem_t *)M_QueueIterator(&spawnqueue);
Polyobj_spawnPolyObj(i, qitem->mo, qitem->mo->spawnpoint->angle);
Polyobj_spawnPolyObj(i, qitem->mo, qitem->mo->spawnpoint->tag);
}
// move polyobjects to spawn points

View File

@ -2776,6 +2776,9 @@ static void P_ConvertBinaryMap(void)
switch (mapthings[i].type)
{
case 750:
case 760:
case 761:
case 762:
mapthings[i].tag = mapthings[i].angle;
break;
default: