- added a few fallthrough annotations that were missed last time.

This commit is contained in:
Christoph Oelckers 2021-11-15 00:06:07 +01:00
parent 74fce3bf58
commit 2fe71a65a8
4 changed files with 6 additions and 4 deletions

View file

@ -1952,6 +1952,7 @@ void moveweapons_d(void)
case FIREBALL:
// Twentieth Anniversary World Tour
if (act->s->picnum == FIREBALL && !isWorldTour()) break;
[[fallthrough]];
case SHRINKSPARK:
case RPG:
case FIRELASER:

View file

@ -363,8 +363,8 @@ void animatesprites_d(spritetype* tsprite, int& spritesortcnt, int x, int y, int
case FREEZE_WEAPON: newtspr->picnum = FREEZESPRITE; break;
case FLAMETHROWER_WEAPON: //Twentieth Anniversary World Tour
if (isWorldTour())
newtspr->picnum = FLAMETHROWERSPRITE; break;
[[fallthrough]];
newtspr->picnum = FLAMETHROWERSPRITE;
break;
case DEVISTATOR_WEAPON: newtspr->picnum = DEVISTATORSPRITE; break;
}

View file

@ -54,7 +54,7 @@ void resetmys()
myy = omyy = ps[myconnectindex].pos.y;
myz = omyz = ps[myconnectindex].pos.z;
myxvel = myyvel = myzvel = 0;
myang = myang = ps[myconnectindex].angle.ang;
myang = ps[myconnectindex].angle.ang;
myhoriz = omyhoriz = ps[myconnectindex].horizon.horiz;
myhorizoff = omyhorizoff = ps[myconnectindex].horizon.horizoff;
mycursectnum = ps[myconnectindex].cursectnum;

View file

@ -606,7 +606,7 @@ int spawn_d(int j, int pn)
// Twentieth Anniversary World Tour
if (!isWorldTour())
break;
[[fallthrough]];
case EXPLOSION2:
case EXPLOSION2BOT:
case BURNING:
@ -973,6 +973,7 @@ int spawn_d(int j, int pn)
case FLAMETHROWERAMMO: // Twentieth Anniversary World Tour
if (!isWorldTour())
break;
[[fallthrough]];
case ATOMICHEALTH:
case STEROIDS: