Commit 7f1721f
committed
Allow wizmode illegal teleports only outside of the debug fuzzer
I have had two fuzzer crashes that ended up tracing back to the fuzzer
teleporting directly onto a monster:
1. a vision blocking mismatch when the hero teleported and displaced a
mimic imitating a boulder
2. a "you over monster" sanity check failure when the hero teleported
onto the same space as a monster in water, drowned (multiple times),
and the level was full of monsters so there was nowhere to relocate
them to
Since both of these derive from behavior that is only allowed in wizard
mode (and not allowed at all upstream) anyway, address this narrowly by
simply removing the debug fuzzer's ability to teleport to a specified
destination and actually arrive there no matter what would make it
illegal in normal play. It is still possible to do this (and expose
these impossibles) in normal wizard mode.1 parent 8280fe4 commit 7f1721f
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
918 | 918 | | |
919 | 919 | | |
920 | 920 | | |
921 | | - | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
922 | 925 | | |
923 | 926 | | |
924 | 927 | | |
| |||
0 commit comments