From ab0ef9b5822f80bfa20c7d377cb217f3535e2074 Mon Sep 17 00:00:00 2001 From: qndel Date: Sat, 17 Apr 2021 02:03:54 +0200 Subject: [PATCH] apply enums --- Source/missiles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/missiles.cpp b/Source/missiles.cpp index 8afd5d473..5fd04eb98 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -1870,8 +1870,8 @@ void missiles_warp(int mi, int sx, int sy, int dx, int dy, int midir, char miene for (i = 0; i < numtrigs && i < MAXTRIGGERS; i++) { trg = &trigs[i]; - if (trg->_tmsg == 1032 || trg->_tmsg == 1027 || trg->_tmsg == 1026 || trg->_tmsg == 1028) { - if ((leveltype == 1 || leveltype == 2) && (trg->_tmsg == 1026 || trg->_tmsg == 1027 || trg->_tmsg == 1028)) { + if (trg->_tmsg == WM_DIABTWARPUP || trg->_tmsg == WM_DIABPREVLVL || trg->_tmsg == WM_DIABNEXTLVL || trg->_tmsg == WM_DIABRTNLVL) { + if ((leveltype == DTYPE_CATHEDRAL || leveltype == DTYPE_CATACOMBS) && (trg->_tmsg == WM_DIABNEXTLVL || trg->_tmsg == WM_DIABPREVLVL || trg->_tmsg == WM_DIABRTNLVL)) { fx = trg->_tx; fy = trg->_ty + 1; } else {