Skip to content

Commit

Permalink
Minor fixes to switch statements to fix incorrect fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Oct 25, 2023
1 parent b320248 commit 2b4bebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dlls/ctf/CTFGoalFlag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,10 @@ void CTFGoalFlag::ReturnFlagThink()
{
case 1:
name = "ReturnedBlackMesaFlag";
break;
case 2:
name = "ReturnedOpposingForceFlag";
break;
}

UTIL_LogPrintf("World triggered \"%s\"\n", name);
Expand Down
1 change: 1 addition & 0 deletions dlls/shocktrooper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,7 @@ void CShockTrooper::HandleAnimEvent(MonsterEvent_t* pEvent)
JustSpoke();
}
}
break;

default:
CSquadMonster::HandleAnimEvent(pEvent);
Expand Down

0 comments on commit 2b4bebc

Please sign in to comment.