Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
1a6e48de
Commit
1a6e48de
authored
2 years ago
by
sphere
Browse files
Options
Downloads
Patches
Plain Diff
Update mobj floorz/ceilingz after FOF destruction
parent
b5c3b30f
No related branches found
No related tags found
2 merge requests
!2355
fix newer versions of mixerx
,
!1945
Update mobj floorz/ceilingz after a bustable FOF is destroyed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/p_floor.c
+14
-0
14 additions, 0 deletions
src/p_floor.c
with
14 additions
and
0 deletions
src/p_floor.c
+
14
−
0
View file @
1a6e48de
...
@@ -1212,6 +1212,19 @@ static boolean T_SectorHasEnemies(sector_t *sec)
...
@@ -1212,6 +1212,19 @@ static boolean T_SectorHasEnemies(sector_t *sec)
return
false
;
return
false
;
}
}
static
void
T_UpdateMobjPlaneZ
(
sector_t
*
sec
)
{
msecnode_t
*
node
=
sec
->
touching_thinglist
;
// things touching this sector
mobj_t
*
mo
;
while
(
node
)
{
mo
=
node
->
m_thing
;
mo
->
floorz
=
P_FloorzAtPos
(
mo
->
x
,
mo
->
y
,
mo
->
z
,
mo
->
height
);
mo
->
ceilingz
=
P_CeilingzAtPos
(
mo
->
x
,
mo
->
y
,
mo
->
z
,
mo
->
height
);
node
=
node
->
m_thinglist_next
;
}
}
//
//
// T_NoEnemiesThinker
// T_NoEnemiesThinker
//
//
...
@@ -1938,6 +1951,7 @@ void EV_CrumbleChain(sector_t *sec, ffloor_t *rover)
...
@@ -1938,6 +1951,7 @@ void EV_CrumbleChain(sector_t *sec, ffloor_t *rover)
// no longer exists (can't collide with again)
// no longer exists (can't collide with again)
rover
->
fofflags
&=
~
FOF_EXISTS
;
rover
->
fofflags
&=
~
FOF_EXISTS
;
rover
->
master
->
frontsector
->
moved
=
true
;
rover
->
master
->
frontsector
->
moved
=
true
;
T_UpdateMobjPlaneZ
(
sec
);
// prevent objects from floating
P_RecalcPrecipInSector
(
sec
);
P_RecalcPrecipInSector
(
sec
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment