- Duke: Fix bad checkaccessswitch_*() calls.

* Fixes #815.
This commit is contained in:
Mitchell Richters 2022-12-29 22:45:36 +11:00
parent ca71532229
commit 22f5c69b4c
2 changed files with 4 additions and 2 deletions

View file

@ -246,7 +246,8 @@ bool checkhitswitch_d(int snum, walltype* wwal, DDukeActor *act)
break;
case DTILE_ACCESSSWITCH:
case DTILE_ACCESSSWITCH2:
checkaccessswitch_d(snum, switchpal, act, wwal);
if (checkaccessswitch_d(snum, switchpal, act, wwal))
return 0;
[[fallthrough]];
case DTILE_DIPSWITCH2:
case DTILE_DIPSWITCH2ON:

View file

@ -216,7 +216,8 @@ bool checkhitswitch_r(int snum, walltype* wwal, DDukeActor* act)
break;
case RTILE_ACCESSSWITCH:
case RTILE_ACCESSSWITCH2:
checkaccessswitch_r(snum, switchpal, act, wwal);
if (checkaccessswitch_r(snum, switchpal, act, wwal))
return 0;
goto goOn1;
case RTILE_MULTISWITCH2: