Skip to content

Commit

Permalink
Removed unused type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
jval1972 committed Mar 14, 2022
1 parent afcbe47 commit 6aed85d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Mars/p_ceilng.pas
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ procedure T_MoveCeiling(ceiling: Pceiling_t);
begin
if (ceiling._type <> silentCrushAndRaise) and
(ceiling._type <> genSilentCrusher) then
S_StartSound(Pmobj_t(@ceiling.sector.soundorg), Ord(sfx_stnmov));
S_StartSound(@ceiling.sector.soundorg, Ord(sfx_stnmov));
end;

if res = pastdest then
Expand Down Expand Up @@ -227,7 +227,7 @@ procedure T_MoveCeiling(ceiling: Pceiling_t);
begin
if (ceiling._type <> silentCrushAndRaise) and
(ceiling._type <> genSilentCrusher) then
S_StartSound(Pmobj_t(@ceiling.sector.soundorg), Ord(sfx_stnmov));
S_StartSound(@ceiling.sector.soundorg, Ord(sfx_stnmov));
end;

if res = pastdest then
Expand Down
5 changes: 2 additions & 3 deletions Mars/p_floor.pas
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,7 @@ function EV_DoFloor(line: Pline_t; floortype: floor_e): integer;
floor.direction := -1;
floor.sector := sec;
floor.speed := FLOORSPEED * 4;
floor.floordestheight :=
P_FindHighestFloorSurrounding(sec);
floor.floordestheight := P_FindHighestFloorSurrounding(sec);
if floor.floordestheight <> sec.floorheight then
floor.floordestheight := floor.floordestheight + 8 * FRACUNIT;
end;
Expand Down Expand Up @@ -816,7 +815,7 @@ function EV_BuildStairs(line: Pline_t; _type: stair_e): integer;

//==============================================================================
//
// EV_DoDonut()
// EV_DoDonut
//
// Handle donut function: lower pillar, raise surrounding pool, both to height,
// texture and type of the sector surrounding the pool.
Expand Down

0 comments on commit 6aed85d

Please sign in to comment.