From 913b0622b8a71ae7f1818700b7b80df950fc6ce1 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 18 Jan 2022 23:00:58 +0100 Subject: [PATCH] - use symbolic constants --- source/games/duke/src/actors.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/games/duke/src/actors.cpp b/source/games/duke/src/actors.cpp index cd170d60c..66fb39b5a 100644 --- a/source/games/duke/src/actors.cpp +++ b/source/games/duke/src/actors.cpp @@ -4395,7 +4395,7 @@ void handle_se24(DDukeActor *actor, const int16_t *list1, const int16_t *list2, { switch (a2->spr.statnum) { - case 5: + case STAT_MISC: if (testlist(list1, a2->spr.picnum)) { a2->spr.xrepeat = a2->spr.yrepeat = 0; @@ -4407,11 +4407,11 @@ void handle_se24(DDukeActor *actor, const int16_t *list1, const int16_t *list2, } [[fallthrough]]; - case 6: + case STAT_STANDABLE: if (a2->spr.picnum == TRIPBOMB) break; [[fallthrough]]; - case 1: - case 0: + case STAT_ACTOR: + case STAT_DEFAULT: if (testlist(list2, a2->spr.picnum) || wallswitchcheck(a2)) break;