Skip to content
Snippets Groups Projects
Commit e17d29cc authored by Nathanaëlle Courant's avatar Nathanaëlle Courant
Browse files

Fix #1358 (disappearing clouds)

parent 282f53dd
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "irrlichttypes_extrabloated.h"
#include <iostream>
#include "constants.h"
class Clouds : public scene::ISceneNode
{
......@@ -70,6 +71,8 @@ class Clouds : public scene::ISceneNode
void updateCameraOffset(v3s16 camera_offset)
{
m_camera_offset = camera_offset;
m_box = core::aabbox3d<f32>(-BS * 1000000, m_cloud_y - BS - BS * camera_offset.Y, -BS * 1000000,
BS * 1000000, m_cloud_y + BS - BS * camera_offset.Y, BS * 1000000);
}
private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment