Fix monster talking rand

It seems that on my previous merge I didn't fully merge from the last private branch.
This commit is contained in:
Alejandro Mujica 2019-02-07 13:03:56 -04:00
parent f9cff8fb05
commit 233edcb48f

View File

@ -1027,7 +1027,7 @@ void Monster::onThinkYell(uint32_t)
} }
int32_t randomResult = rand(); int32_t randomResult = rand();
if (rand() == 50 * (randomResult / 50)) { if (randomResult == 50 * (randomResult / 50)) {
if (!mType->info.voiceVector.empty()) { if (!mType->info.voiceVector.empty()) {
uint32_t index = uniform_random(0, mType->info.voiceVector.size() - 1); uint32_t index = uniform_random(0, mType->info.voiceVector.size() - 1);
const voiceBlock_t& vb = mType->info.voiceVector[index]; const voiceBlock_t& vb = mType->info.voiceVector[index];