Skip to content

Commit a5a53b4

Browse files
committed
RandomHighwayAnims: don't pick from the duplicated sets
1 parent 9b7fcc7 commit a5a53b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hooks_misc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ class RandomHighwayAnimSets : public Hook
1212
static void GetBranchRenditionType_dest(SafetyHookContext& ctx)
1313
{
1414
constexpr int br_step_tbl_Count = 15;
15+
constexpr int UniqueSetCount = 4;
1516

1617
std::random_device rd;
1718
std::mt19937 g(rd());
18-
std::uniform_int_distribution<> distrib(0, br_step_tbl_Count - 1);
19+
std::uniform_int_distribution<> distrib(0, UniqueSetCount - 1);
1920

2021
ctx.eax = int(distrib(g));
2122
spdlog::debug("GetBranchRenditionType_dest: using set {}", int(ctx.eax));

0 commit comments

Comments
 (0)