mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Initialize in p_spec.c too + magic number replacement
This commit is contained in:
parent
9770368ee9
commit
fae845f935
1 changed files with 7 additions and 3 deletions
10
src/p_spec.c
10
src/p_spec.c
|
@ -4420,15 +4420,19 @@ void P_ProcessSpecialSector(player_t *player, sector_t *sector, sector_t *rovers
|
|||
// clear the special so you can't push the button twice.
|
||||
sector->special = 0;
|
||||
|
||||
// Initialize my junk
|
||||
junk.tags.tags = NULL;
|
||||
junk.tags.count = 0;
|
||||
|
||||
// Move the button down
|
||||
Tag_FSet(&junk.tags, 680);
|
||||
Tag_FSet(&junk.tags, LE_CAPSULE0);
|
||||
EV_DoElevator(&junk, elevateDown, false);
|
||||
|
||||
// Open the top FOF
|
||||
Tag_FSet(&junk.tags, 681);
|
||||
Tag_FSet(&junk.tags, LE_CAPSULE1);
|
||||
EV_DoFloor(&junk, raiseFloorToNearestFast);
|
||||
// Open the bottom FOF
|
||||
Tag_FSet(&junk.tags, 682);
|
||||
Tag_FSet(&junk.tags, LE_CAPSULE2);
|
||||
EV_DoCeiling(&junk, lowerToLowestFast);
|
||||
|
||||
// Mark all players with the time to exit thingy!
|
||||
|
|
Loading…
Reference in a new issue