From 172290224b09395fdf380ceb2fe45a4250edc08a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 25 Apr 2016 01:01:28 +0200 Subject: [PATCH] - make modes 2 and 3 of Teleport_NoFog compatible with Eternity by defaulting to mode 1 when no line is available. --- src/p_lnspec.cpp | 4 ++-- wadsrc/static/xlat/eternity.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/p_lnspec.cpp b/src/p_lnspec.cpp index 4fca749591..2e6acd8568 100644 --- a/src/p_lnspec.cpp +++ b/src/p_lnspec.cpp @@ -1064,11 +1064,11 @@ FUNC(LS_Teleport_NoFog) break; case 2: - flags |= TELF_KEEPORIENTATION | TELF_ROTATEBOOM; // adjust to exit thing like Boom (i.e. with incorrect reversed angle) + if (ln != NULL) flags |= TELF_KEEPORIENTATION | TELF_ROTATEBOOM; // adjust to exit thing like Boom (i.e. with incorrect reversed angle) break; case 3: - flags |= TELF_KEEPORIENTATION | TELF_ROTATEBOOMINVERSE; // adjust to exit thing correctly + if (ln != NULL) flags |= TELF_KEEPORIENTATION | TELF_ROTATEBOOMINVERSE; // adjust to exit thing correctly break; } diff --git a/wadsrc/static/xlat/eternity.txt b/wadsrc/static/xlat/eternity.txt index bca1a6769b..bfdac2cecf 100644 --- a/wadsrc/static/xlat/eternity.txt +++ b/wadsrc/static/xlat/eternity.txt @@ -230,3 +230,4 @@ enum 443 = 0, Generic_Crusher(0) 444 = 0, Teleport(0) 445 = 0, Teleport_NoFog(0) +446 = 0, Teleport_Line(0)