Heightmap fix, texture fix, rotating crystals and enemy height to 0

This commit is contained in:
Dofensmirtsz
2016-06-21 23:31:43 +02:00
parent 0e99b9f719
commit 6306e8abd4
6 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ HeightMap::HeightMap(const std::string &file, World* world)
{
int offsets[4][2] = { { 0, 0 },{ 1, 0 },{ 1, 1 },{ 0, 1 } };
if (valueAt(x, y, GREEN) > 0)
if (valueAt(x, y, GREEN) > 5)
{
world->addLevelObject(new LevelObject(world->getObjectFromValue(valueAt(x, y, GREEN)).first, Vec3f(x, heightAt(x, y), y), Vec3f(0, 0, 0), 1, world->getObjectFromValue(valueAt(x, y, GREEN)).second));
}