From 233edcb48f8187fd2f8fc448e0728747289fe207 Mon Sep 17 00:00:00 2001 From: Alejandro Mujica Date: Thu, 7 Feb 2019 13:03:56 -0400 Subject: [PATCH] Fix monster talking rand It seems that on my previous merge I didn't fully merge from the last private branch. --- src/monster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monster.cpp b/src/monster.cpp index c48d1bc..fdc21a3 100644 --- a/src/monster.cpp +++ b/src/monster.cpp @@ -1027,7 +1027,7 @@ void Monster::onThinkYell(uint32_t) } int32_t randomResult = rand(); - if (rand() == 50 * (randomResult / 50)) { + if (randomResult == 50 * (randomResult / 50)) { if (!mType->info.voiceVector.empty()) { uint32_t index = uniform_random(0, mType->info.voiceVector.size() - 1); const voiceBlock_t& vb = mType->info.voiceVector[index];