mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 01:01:45 +00:00
Minor cleanup in P_SpawnSpecials
This commit is contained in:
parent
0d2d7a2803
commit
e4d7b3df6c
1 changed files with 2 additions and 4 deletions
|
@ -6224,8 +6224,6 @@ void P_SpawnSpecials(boolean fromnetsave)
|
|||
// Init line EFFECTs
|
||||
for (i = 0; i < numlines; i++)
|
||||
{
|
||||
mtag_t tag = Tag_FGet(&lines[i].tags);
|
||||
|
||||
// set line specials to 0 here too, same reason as above
|
||||
if (netgame || multiplayer)
|
||||
{
|
||||
|
@ -6253,7 +6251,7 @@ void P_SpawnSpecials(boolean fromnetsave)
|
|||
break;
|
||||
|
||||
sec = sides[*lines[i].sidenum].sector - sectors;
|
||||
TAG_ITER_SECTORS(tag, s)
|
||||
TAG_ITER_SECTORS(Tag_FGet(&lines[i].tags), s)
|
||||
{
|
||||
sectors[s].gravityptr = §ors[sec].floorheight; // This allows it to change in realtime!
|
||||
|
||||
|
@ -6271,7 +6269,7 @@ void P_SpawnSpecials(boolean fromnetsave)
|
|||
break;
|
||||
|
||||
sec = sides[*lines[i].sidenum].sector - sectors;
|
||||
TAG_ITER_SECTORS(tag, s)
|
||||
TAG_ITER_SECTORS(Tag_FGet(&lines[i].tags), s)
|
||||
P_AddCameraScanner(§ors[sec], §ors[s], R_PointToAngle2(lines[i].v2->x, lines[i].v2->y, lines[i].v1->x, lines[i].v1->y));
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue