diff options
author | stujones11 <stujones11@server.fake> | 2013-12-11 20:33:39 +0000 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-12-12 16:11:00 -0500 |
commit | d9ef072305b92b020ebe473765118cca0e23608a (patch) | |
tree | d3232745cfe75bed24cbaeff33c1a11409bbd139 /src/environment.h | |
parent | 33de69a173a3646d8f5b9bf91b3e48d76cd40ae6 (diff) | |
download | minetest-d9ef072305b92b020ebe473765118cca0e23608a.tar.gz minetest-d9ef072305b92b020ebe473765118cca0e23608a.tar.bz2 minetest-d9ef072305b92b020ebe473765118cca0e23608a.zip |
Make line_of_sight return blocking node position
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/environment.h b/src/environment.h index 9f9a0a23c..d9804e781 100644 --- a/src/environment.h +++ b/src/environment.h @@ -295,7 +295,7 @@ public: void step(f32 dtime); //check if there's a line of sight between two positions - bool line_of_sight(v3f pos1, v3f pos2, float stepsize=1.0); + bool line_of_sight(v3f pos1, v3f pos2, float stepsize=1.0, v3s16 *p=NULL); u32 getGameTime() { return m_game_time; } |