diff options
author | James Haley | 2011-02-06 17:38:54 +0000 |
---|---|---|
committer | James Haley | 2011-02-06 17:38:54 +0000 |
commit | 17333436188f63319625b007489c7b70029bfaba (patch) | |
tree | abccc36961eb03e46828c5a38f20eb501519f0f8 /src/strife/p_telept.c | |
parent | ab144aa9d30a97f0c3a2d049d624c868aaba3af7 (diff) | |
download | chocolate-doom-17333436188f63319625b007489c7b70029bfaba.tar.gz chocolate-doom-17333436188f63319625b007489c7b70029bfaba.tar.bz2 chocolate-doom-17333436188f63319625b007489c7b70029bfaba.zip |
Numerous fixes/adjustments: removed bodyque, restored "is turbo" (found
it in there after all), removed some dead code in p_dialog, added a
'default: break;' case in EV_VerticalDoor, initialize
player_t::allegiance in P_SetupLevel, minor changes to EV_Teleport,
2nd-pass verification for p_tick, and big fixes in p_user.c including
noclip cheat, viewz clipping against floor, air control thrust amount,
and missing/incorrect else's.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2250
Diffstat (limited to 'src/strife/p_telept.c')
-rw-r--r-- | src/strife/p_telept.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/strife/p_telept.c b/src/strife/p_telept.c index 390951a0..b6928b27 100644 --- a/src/strife/p_telept.c +++ b/src/strife/p_telept.c @@ -47,7 +47,8 @@ // TELEPORTATION // // haleyjd 09/22/10: [STRIFE] Modified to take a flags parameter to control -// silent teleportation. +// silent teleportation. Rogue also removed the check for missiles, and the +// z-set was replaced with one in P_TeleportMove. // int EV_Teleport @@ -67,16 +68,16 @@ EV_Teleport fixed_t oldy; fixed_t oldz; + // haleyjd 20110205 [STRIFE]: this is not checked here // don't teleport missiles - if (thing->flags & MF_MISSILE) - return 0; + //if (thing->flags & MF_MISSILE) + // return 0; // Don't teleport if hit back of line, // so you can get out of teleporter. if (side == 1) return 0; - tag = line->tag; for (i = 0; i < numsectors; i++) { @@ -89,18 +90,18 @@ EV_Teleport { // not a mobj if (thinker->function.acp1 != (actionf_p1)P_MobjThinker) - continue; + continue; m = (mobj_t *)thinker; // not a teleportman if (m->type != MT_TELEPORTMAN ) - continue; + continue; sector = m->subsector->sector; // wrong sector if (sector-sectors != i ) - continue; + continue; oldx = thing->x; oldy = thing->y; @@ -114,9 +115,13 @@ EV_Teleport // // Note that although chex.exe is based on Final Doom, // it does not have this quirk. - + // + // haleyjd 20110205 [STRIFE] This code is *not* present, + // because of a z-set which Rogue added to P_TeleportMove. + /* if (gameversion < exe_final || gameversion == exe_chex) thing->z = thing->floorz; + */ if (thing->player) thing->player->viewz = thing->z+thing->player->viewheight; @@ -142,12 +147,12 @@ EV_Teleport // don't move for a bit if (thing->player) - thing->reactiontime = 18; + thing->reactiontime = 18; thing->angle = m->angle; thing->momx = thing->momy = thing->momz = 0; return 1; - } + } } } return 0; |