mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-02 02:29:21 +02:00
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:
parent
f9cff8fb05
commit
233edcb48f
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user