marked intended fallthroughs to prevent errors

This commit is contained in:
Zeno Rogue 2021-03-12 15:31:00 +01:00
parent e4947acef7
commit 4b45872443
2 changed files with 4 additions and 4 deletions

View File

@ -539,10 +539,10 @@ void celldrawer::setcolors() {
fcol = wcol = gradient(wcol, 0x40FF40, 0, 0.2, 1);
else if(mine::marked_mine(c))
fcol = wcol = gradient(wcol, 0xFF4040, -1, sintick(100), 1);
// fallthrough
goto fallthrough;
#endif
case waMineOpen:
case waMineOpen: fallthrough:
if(wmblack || wmascii) {
wcol &= 0xFEFEFE;
wcol >>= 1;

View File

@ -2221,10 +2221,10 @@ EX void draw_model_elements() {
}
queuereset(pmodel, PPR::CIRCLE);
/* fallthrough */
goto fallthrough;
}
case mdTwoPoint: case mdSimulatedPerspective: {
case mdTwoPoint: case mdSimulatedPerspective: fallthrough: {
ld a = -pconf.model_orientation * degree;
queuestr(shiftless(xspinpush0(a, +pconf.twopoint_param)), vid.xres / 100, "X", ringcolor >> 8);
queuestr(shiftless(xspinpush0(a, -pconf.twopoint_param)), vid.xres / 100, "X", ringcolor >> 8);