Core/Misc: Misc fixes

This commit is contained in:
hondacrx
2018-03-21 23:43:28 -04:00
parent 9b2c85950b
commit caa3cfed24
4 changed files with 20 additions and 13 deletions
+2 -2
View File
@@ -2262,7 +2262,7 @@ namespace Game
modelInfo.BoundingRadius = result.Read<float>(1);
modelInfo.CombatReach = result.Read<float>(2);
modelInfo.DisplayIdOtherGender = result.Read<uint>(3);
modelInfo.gender = (sbyte)creatureDisplay.Gender;
modelInfo.gender = creatureDisplay.Gender;
// Checks
if (modelInfo.gender == (sbyte)Gender.Unknown)
@@ -3587,7 +3587,7 @@ namespace Game
return null;
// If a model for another gender exists, 50% chance to use it
if (modelInfo.DisplayIdOtherGender != 0 && RandomHelper.NextDouble() == 0)
if (modelInfo.DisplayIdOtherGender != 0 && RandomHelper.URand(0, 1) == 0)
{
CreatureModelInfo minfotmp = GetCreatureModelInfo(modelInfo.DisplayIdOtherGender);
if (minfotmp == null)