Adapt skybox view point to UDMF

This commit is contained in:
MascaraSnake 2021-12-28 07:29:41 +01:00
parent 43a15387d2
commit 90eb7c71a3
3 changed files with 14 additions and 1 deletions

View file

@ -5142,6 +5142,16 @@ udmf
{
title = "Skybox View Point";
sprite = "internal:skyb";
arg0
{
title = "Type";
type = 11;
enum
{
0 = "Viewpoint";
1 = "Centerpoint";
}
}
}
}

View file

@ -12705,7 +12705,7 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
break;
}
if (mthing->options & MTF_OBJECTSPECIAL)
if (mthing->args[0])
skyboxcenterpnts[tag] = mobj;
else
skyboxviewpnts[tag] = mobj;

View file

@ -5079,6 +5079,9 @@ static void P_ConvertBinaryMap(void)
mapthings[i].type = 761;
break;
}
case 780: //Skybox
mapthings[i].args[0] = !!(mapthings[i].options & MTF_OBJECTSPECIAL);
break;
case 1104: //Mace spawnpoint
case 1105: //Chain with maces spawnpoint
case 1106: //Chained spring spawnpoint