FIxed a couple more warnings
This commit is contained in:
parent
2c945c8818
commit
fb20c2eb85
@ -757,6 +757,11 @@ void cWorld::InitialiseGeneratorDefaults(cIniFile & a_IniFile)
|
||||
a_IniFile.GetValueSet("Generator", "BottomLavaHeight", "30");
|
||||
break;
|
||||
}
|
||||
case dimNotSet:
|
||||
{
|
||||
assert(!"Dimension not set");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -772,6 +777,7 @@ void cWorld::InitialiseAndLoadMobSpawningValues(cIniFile & a_IniFile)
|
||||
case dimOverworld: DefaultMonsters = "bat, cavespider, chicken, cow, creeper, enderman, horse, mooshroom, ocelot, pig, sheep, silverfish, skeleton, slime, spider, squid, wolf, zombie"; break;
|
||||
case dimNether: DefaultMonsters = "blaze, ghast, magmacube, skeleton, zombie, zombiepigman"; break;
|
||||
case dimEnd: DefaultMonsters = "enderman"; break;
|
||||
case dimNotSet: assert(!"Dimension not set"); break;
|
||||
}
|
||||
|
||||
m_bAnimals = a_IniFile.GetValueSetB("Monsters", "AnimalsOn", true);
|
||||
@ -1130,7 +1136,7 @@ void cWorld::UpdateSkyDarkness(void)
|
||||
}
|
||||
else if (TempTime <= TIME_NIGHT_START)
|
||||
{
|
||||
m_SkyDarkness = (TIME_NIGHT_START - TempTime) / TIME_SPAWN_DIVISOR;
|
||||
m_SkyDarkness = static_cast<NIBBLETYPE>((TIME_NIGHT_START - TempTime) / TIME_SPAWN_DIVISOR);
|
||||
}
|
||||
else if (TempTime <= TIME_NIGHT_END)
|
||||
{
|
||||
@ -1138,7 +1144,7 @@ void cWorld::UpdateSkyDarkness(void)
|
||||
}
|
||||
else
|
||||
{
|
||||
m_SkyDarkness = (TIME_SUNRISE - TempTime) / TIME_SPAWN_DIVISOR;
|
||||
m_SkyDarkness = static_cast<NIBBLETYPE>((TIME_SUNRISE - TempTime) / TIME_SPAWN_DIVISOR);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user