From e17d29ccd608a654c3038bf35f5ca710e5ef0db8 Mon Sep 17 00:00:00 2001 From: Novatux Date: Mon, 9 Jun 2014 08:18:27 +0200 Subject: [PATCH] Fix #1358 (disappearing clouds) --- src/clouds.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/clouds.h b/src/clouds.h index a6883a44..a9e58e0f 100644 --- a/src/clouds.h +++ b/src/clouds.h @@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes_extrabloated.h" #include +#include "constants.h" class Clouds : public scene::ISceneNode { @@ -70,6 +71,8 @@ public: void updateCameraOffset(v3s16 camera_offset) { m_camera_offset = camera_offset; + m_box = core::aabbox3d(-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: