1
0

Fixed random drops not occurring at all

git-svn-id: http://mc-server.googlecode.com/svn/trunk@579 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-06-08 14:52:17 +00:00
parent 6d36a82e19
commit 308f6b846f

View File

@ -12,11 +12,11 @@
static void AddRandomDrop(cItems & a_Drops, MTRand & r1, int a_OneInNChance, ENUM_ITEM_ID a_ItemID)
{
if (r1.randInt(a_OneInNChance - 1) != 0)
if ((r1.randInt(16 * a_OneInNChance - 1) / 16) != 0)
{
return;
}
a_Drops.push_back(cItem(a_ItemID));
a_Drops.push_back(cItem(a_ItemID, 1));
}