mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-05 00:12:16 +00:00
Use tag instead of angle for polyobject spawn points and anchors
This commit is contained in:
parent
0cb61af3d2
commit
0080844c5b
2 changed files with 6 additions and 3 deletions
|
|
@ -708,9 +708,9 @@ static void Polyobj_moveToSpawnSpot(mapthing_t *anchor)
|
||||||
vertex_t dist, sspot;
|
vertex_t dist, sspot;
|
||||||
size_t i;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1562,7 +1562,7 @@ void Polyobj_InitLevel(void)
|
||||||
{
|
{
|
||||||
qitem = (mobjqitem_t *)M_QueueIterator(&spawnqueue);
|
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
|
// move polyobjects to spawn points
|
||||||
|
|
|
||||||
|
|
@ -2776,6 +2776,9 @@ static void P_ConvertBinaryMap(void)
|
||||||
switch (mapthings[i].type)
|
switch (mapthings[i].type)
|
||||||
{
|
{
|
||||||
case 750:
|
case 750:
|
||||||
|
case 760:
|
||||||
|
case 761:
|
||||||
|
case 762:
|
||||||
mapthings[i].tag = mapthings[i].angle;
|
mapthings[i].tag = mapthings[i].angle;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue