Browse Source

apply enums

pull/2283/head
qndel 5 years ago committed by Anders Jenbo
parent
commit
ab0ef9b582
  1. 4
      Source/missiles.cpp

4
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 {

Loading…
Cancel
Save