projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
282f53d
)
Fix #1358 (disappearing clouds)
author
Novatux
<nathanael.courant@laposte.net>
Mon, 9 Jun 2014 06:18:27 +0000
(08:18 +0200)
committer
Novatux
<nathanael.courant@laposte.net>
Mon, 9 Jun 2014 06:18:33 +0000
(08:18 +0200)
src/clouds.h
patch
|
blob
|
history
diff --git
a/src/clouds.h
b/src/clouds.h
index a6883a44a2aa6dd5d2cbb245bb495b72cf9b5689..a9e58e0f082d2590ca30ac18e1956f29bb14f560 100644
(file)
--- 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: