diff --git a/src/p_map.c b/src/p_map.c index 8c9db9ce4..9c6520c4b 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -213,6 +213,7 @@ static boolean P_SpecialIsLinedefCrossType(UINT16 ldspecial) switch (ldspecial) { case 2001: // Finish line + case 2003: // Respawn line { linedefcrossspecial = true; } diff --git a/src/p_spec.c b/src/p_spec.c index 06de8118e..9eca9605c 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -2182,6 +2182,13 @@ void P_CrossSpecialLine(line_t *line, INT32 side, mobj_t *thing) } break; + case 2003: // Respawn Line + { + if (player->respawn.state == RESPAWNST_NONE) + P_DamageMobj(player->mo, NULL, NULL, 1, DMG_DEATHPIT); + } + break; + default: { // Do nothing @@ -6939,6 +6946,8 @@ void P_SpawnSpecials(boolean fromnetsave) break; case 2002: // Linedef Trigger: Race Lap break; + case 2003: // Respawn Line + break; default: break;