mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-28 13:21:10 +00:00
Turns out boss thing types re-setting mthing->z is a left-over from 1.09.4 and older versions
Apparently bosses and players used to use options >> 5 instead of 4 for z heights, or so it seems
This commit is contained in:
parent
1db51f5a23
commit
7a369a5650
1 changed files with 1 additions and 4 deletions
|
@ -8901,6 +8901,7 @@ void P_SpawnMapThing(mapthing_t *mthing)
|
||||||
const size_t mthingi = (size_t)(mthing - mapthings);
|
const size_t mthingi = (size_t)(mthing - mapthings);
|
||||||
|
|
||||||
// Why does P_FindSpecialLineFromTag not work here?!?
|
// Why does P_FindSpecialLineFromTag not work here?!?
|
||||||
|
// Monster Iestyn: tag lists haven't been initialised yet for the map, that's why
|
||||||
for (line = 0; line < numlines; line++)
|
for (line = 0; line < numlines; line++)
|
||||||
{
|
{
|
||||||
if (lines[line].special == 9 && lines[line].tag == mthing->angle)
|
if (lines[line].special == 9 && lines[line].tag == mthing->angle)
|
||||||
|
@ -9050,10 +9051,6 @@ ML_NOCLIMB : Direction not controllable
|
||||||
{
|
{
|
||||||
if (mthing->options & MTF_OBJECTSPECIAL) // No egg trap for this boss
|
if (mthing->options & MTF_OBJECTSPECIAL) // No egg trap for this boss
|
||||||
mobj->flags2 |= MF2_BOSSNOTRAP;
|
mobj->flags2 |= MF2_BOSSNOTRAP;
|
||||||
|
|
||||||
z = ss->sector->floorheight + ((mthing->options >> (ZSHIFT)) << FRACBITS);
|
|
||||||
|
|
||||||
mthing->z = (INT16)(z>>FRACBITS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (i == MT_AXIS || i == MT_AXISTRANSFER || i == MT_AXISTRANSFERLINE) // Axis Points
|
if (i == MT_AXIS || i == MT_AXISTRANSFER || i == MT_AXISTRANSFERLINE) // Axis Points
|
||||||
|
|
Loading…
Reference in a new issue