Skip to content

Commit

Permalink
Merge pull request #1570 from Hoikas/fix_anim_ffwd_cmd
Browse files Browse the repository at this point in the history
Fix missing Anim FFwd Responder Cmd.
  • Loading branch information
Hoikas authored Mar 2, 2024
2 parents 35a45e3 + 85e9f4e commit 5807230
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/Tools/MaxComponent/plResponderAnim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,17 @@ enum
kRespondRewindSound,
kRespondFastForwardAnim,

kNumTypes = 16
kNumTypes = 17
};

int plResponderCmdAnim::NumTypes()
{
return kNumTypes;
}

static int IndexToOldType(int idx)
static constexpr int IndexToOldType(int idx)
{
static int oldTypes[] =
constexpr int oldTypes[] =
{
kRespondPlayAnim,
kRespondStopAnim,
Expand All @@ -152,6 +152,7 @@ static int IndexToOldType(int idx)
kRespondFastForwardAnim,
};

static_assert(std::size(oldTypes) == kNumTypes, "ResponderAnim enumerations have differing lengths!");
hsAssert(idx < kNumTypes, "Bad index");
return oldTypes[idx];
}
Expand Down

0 comments on commit 5807230

Please sign in to comment.