mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Instead of hacking the existing Question Block thinker to ignore the object, let's just... not give the Brick Block a thinker in the first place.
This commit is contained in:
parent
58d0d2d5e9
commit
7c7a8413c9
2 changed files with 6 additions and 8 deletions
|
|
@ -1797,14 +1797,11 @@ static mobj_t *SearchMarioNode(msecnode_t *node)
|
||||||
void T_MarioBlockChecker(levelspecthink_t *block)
|
void T_MarioBlockChecker(levelspecthink_t *block)
|
||||||
{
|
{
|
||||||
line_t *masterline = block->sourceline;
|
line_t *masterline = block->sourceline;
|
||||||
if (!(masterline->flags & ML_NOCLIMB)) // Don't change the textures of a brick block, just a question block
|
|
||||||
{
|
|
||||||
if (SearchMarioNode(block->sector->touching_thinglist))
|
if (SearchMarioNode(block->sector->touching_thinglist))
|
||||||
sides[masterline->sidenum[0]].midtexture = sides[masterline->sidenum[0]].bottomtexture;
|
sides[masterline->sidenum[0]].midtexture = sides[masterline->sidenum[0]].bottomtexture;
|
||||||
else
|
else
|
||||||
sides[masterline->sidenum[0]].midtexture = sides[masterline->sidenum[0]].toptexture;
|
sides[masterline->sidenum[0]].midtexture = sides[masterline->sidenum[0]].toptexture;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// This is the Thwomp's 'brain'. It looks around for players nearby, and if
|
// This is the Thwomp's 'brain'. It looks around for players nearby, and if
|
||||||
// it finds any, **SMASH**!!! Muahahhaa....
|
// it finds any, **SMASH**!!! Muahahhaa....
|
||||||
|
|
|
||||||
|
|
@ -4933,6 +4933,7 @@ static ffloor_t *P_AddFakeFloor(sector_t *sec, sector_t *sec2, line_t *master, f
|
||||||
|
|
||||||
if ((flags & FF_MARIO))
|
if ((flags & FF_MARIO))
|
||||||
{
|
{
|
||||||
|
if (!(master->flags & ML_NOCLIMB)) // Don't change the textures of a brick block, just a question block
|
||||||
P_AddBlockThinker(sec2, master);
|
P_AddBlockThinker(sec2, master);
|
||||||
CheckForMarioBlocks = true;
|
CheckForMarioBlocks = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue