mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
Use tag instead of angle for polyobject spawn points and anchors
This commit is contained in:
parent
37375972e2
commit
5656d77c82
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue