aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-06-09 08:18:27 +0200
committerNovatux <nathanael.courant@laposte.net>2014-06-09 08:18:33 +0200
commite17d29ccd608a654c3038bf35f5ca710e5ef0db8 (patch)
treee4bc5e629b29baab987ac3520bd4a74c741d8396
parent282f53ddb7be446537b237fd5e8dc3321156efdb (diff)
downloadminetest-e17d29ccd608a654c3038bf35f5ca710e5ef0db8.tar.gz
minetest-e17d29ccd608a654c3038bf35f5ca710e5ef0db8.tar.bz2
minetest-e17d29ccd608a654c3038bf35f5ca710e5ef0db8.zip
Fix #1358 (disappearing clouds)
-rw-r--r--src/clouds.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/clouds.h b/src/clouds.h
index a6883a44a..a9e58e0f0 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 <iostream>
+#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<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: