mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-20 01:43:50 +00:00
Adapt skybox view point to UDMF
This commit is contained in:
parent
43a15387d2
commit
90eb7c71a3
3 changed files with 14 additions and 1 deletions
|
@ -5142,6 +5142,16 @@ udmf
|
|||
{
|
||||
title = "Skybox View Point";
|
||||
sprite = "internal:skyb";
|
||||
arg0
|
||||
{
|
||||
title = "Type";
|
||||
type = 11;
|
||||
enum
|
||||
{
|
||||
0 = "Viewpoint";
|
||||
1 = "Centerpoint";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue