Merge branch 'samples-floors-lighting-fix' into samples/floors

This commit is contained in:
h4570
2020-12-06 20:36:11 +01:00
2 changed files with 8 additions and 3 deletions
+7 -2
View File
@@ -23,7 +23,13 @@ const float FLOOR_ANIMATION_Y_MAX = 10.0F;
// Constructors/Destructors
// ----
Floor::Floor() {}
Floor::Floor()
{
animTimer = 0;
animDirection = 0;
initOffset = 0;
isByAudioTriggered = false;
}
Floor::~Floor() {}
@@ -44,7 +50,6 @@ void Floor::init(const Mesh &mother, const Point &spiral, const u8 &initOffset)
this->animTimer = rand() % FLOOR_ANIMATION_LENGTH;
this->mesh.shouldBeLighted = true;
this->mesh.shouldBeFrustumCulled = true;
this->animDirection = 0;
this->mesh.position.x = spiral.x * 80.0F;
this->mesh.position.z = spiral.y * 80.0F;
}