Skip to content

Commit

Permalink
Fix #1358 (disappearing clouds)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekdohibs committed Jun 9, 2014
1 parent 282f53d commit e17d29c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/clouds.h
Expand Up @@ -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
{
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit e17d29c

Please sign in to comment.