From bb46afcb7e7b22a43466fc129db906fb397c2549 Mon Sep 17 00:00:00 2001 From: bibo38 Date: Fri, 26 Jun 2015 19:32:16 +0200 Subject: Now Horses spawn with correct data values. The max-value of style is 4, of color is 6. See http://wiki.vg/Entities#Horse Also based on the if, the max value of HorseType is 7. Bugfix #2259 --- src/Mobs/Monster.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 8d71c54e8..cb4edb951 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -1073,9 +1073,9 @@ cMonster * cMonster::NewMonsterFromType(eMonsterType a_MobType) case mtHorse: { // Horses take a type (species), a colour, and a style (dots, stripes, etc.) - int HorseType = Random.NextInt(7); - int HorseColor = Random.NextInt(6); - int HorseStyle = Random.NextInt(6); + int HorseType = Random.NextInt(8); + int HorseColor = Random.NextInt(7); + int HorseStyle = Random.NextInt(5); int HorseTameTimes = Random.NextInt(6) + 1; if ((HorseType == 5) || (HorseType == 6) || (HorseType == 7)) -- cgit v1.2.3