diff --git a/src/p_spec.c b/src/p_spec.c index ebe0ad37f..267e948cf 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -3032,7 +3032,9 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha { switch (args[2]) { - case -1: + case TMCAM_FIRST: + case TMCAM_SECOND: + case TMCAM_THIRD: { mobj_t *firstPlace = NULL; INT32 i; @@ -3057,7 +3059,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha continue; } - if (player->position == 1) + if (player->position == abs(args[2])) // a bit of a hack { firstPlace = player->mo; break; @@ -3070,7 +3072,7 @@ boolean P_ProcessSpecial(activator_t *activator, INT16 special, INT32 *args, cha ); break; } - case -2: + case TMCAM_CONSOLE: { mobj_t *consoleMo = NULL; if (playeringame[consoleplayer] == true) diff --git a/src/p_spec.h b/src/p_spec.h index 908046936..b9eed2e4e 100644 --- a/src/p_spec.h +++ b/src/p_spec.h @@ -519,6 +519,14 @@ typedef enum TMLOOP_BETA = 1, } textmaploopendpointtype_t; +typedef enum +{ + TMCAM_FIRST = -1, + TMCAM_SECOND = -2, + TMCAM_THIRD = -3, + TMCAM_CONSOLE = -4, +} textmapcamerafollow_t; + // GETSECSPECIAL (specialval, section) // // Pulls out the special # from a particular section.