summaryrefslogtreecommitdiff
path: root/src/client/clientobject.h
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2020-06-01 19:01:47 +0200
committerGitHub <noreply@github.com>2020-06-01 19:01:47 +0200
commita08d18acad345363780f5286300d65b39ea9c9f9 (patch)
tree0929b7f73ea7c781a8c46aeafdd445634b55a443 /src/client/clientobject.h
parentf849917bbe9c5eff51bee0a3125eabed16efb172 (diff)
downloadminetest-a08d18acad345363780f5286300d65b39ea9c9f9.tar.gz
minetest-a08d18acad345363780f5286300d65b39ea9c9f9.tar.bz2
minetest-a08d18acad345363780f5286300d65b39ea9c9f9.zip
ContentCAO: Update light of all attached entities (#9975)
Diffstat (limited to 'src/client/clientobject.h')
-rw-r--r--src/client/clientobject.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/clientobject.h b/src/client/clientobject.h
index 12e0db35b..8e64b8406 100644
--- a/src/client/clientobject.h
+++ b/src/client/clientobject.h
@@ -41,10 +41,10 @@ public:
virtual void addToScene(ITextureSource *tsrc) {}
virtual void removeFromScene(bool permanent) {}
- // 0 <= light_at_pos <= LIGHT_SUN
- virtual void updateLight(u8 light_at_pos) {}
- virtual void updateLightNoCheck(u8 light_at_pos) {}
+
+ virtual void updateLight(u32 day_night_ratio) {}
virtual v3s16 getLightPosition() { return v3s16(0, 0, 0); }
+
virtual bool getCollisionBox(aabb3f *toset) const { return false; }
virtual bool getSelectionBox(aabb3f *toset) const { return false; }
virtual bool collideWithObjects() const { return false; }