Skybox spawning now uses the taglists.
This commit is contained in:
parent
81be6b4067
commit
4fc07473fd
11
src/p_mobj.c
11
src/p_mobj.c
|
@ -12584,17 +12584,20 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MT_SKYBOX:
|
case MT_SKYBOX:
|
||||||
if (mthing->tag < 0 || mthing->tag > 15)
|
|
||||||
{
|
{
|
||||||
CONS_Debug(DBG_GAMELOGIC, "P_SetupSpawnedMapThing: Skybox ID %d of mapthing %s is not between 0 and 15!\n", mthing->tag, sizeu1((size_t)(mthing - mapthings)));
|
mtag_t tag = Tag_FGet(&mthing->tags);
|
||||||
|
if (tag < 0 || tag > 15)
|
||||||
|
{
|
||||||
|
CONS_Debug(DBG_GAMELOGIC, "P_SetupSpawnedMapThing: Skybox ID %d of mapthing %s is not between 0 and 15!\n", tag, sizeu1((size_t)(mthing - mapthings)));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mthing->options & MTF_OBJECTSPECIAL)
|
if (mthing->options & MTF_OBJECTSPECIAL)
|
||||||
skyboxcenterpnts[mthing->tag] = mobj;
|
skyboxcenterpnts[tag] = mobj;
|
||||||
else
|
else
|
||||||
skyboxviewpnts[mthing->tag] = mobj;
|
skyboxviewpnts[tag] = mobj;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case MT_EGGSTATUE:
|
case MT_EGGSTATUE:
|
||||||
if (mthing->options & MTF_EXTRA)
|
if (mthing->options & MTF_EXTRA)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2844,7 +2844,7 @@ static void P_ConvertBinaryMap(void)
|
||||||
mapthings[i].tag = mapthings[i].angle;
|
mapthings[i].tag = mapthings[i].angle;
|
||||||
break;
|
break;
|
||||||
case 780:
|
case 780:
|
||||||
mapthings[i].tag = mapthings[i].extrainfo;
|
Tag_FSet(&mapthings[i].tags, mapthings[i].extrainfo);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue