1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02:00

Make line_of_sight return blocking node position

This commit is contained in:
stujones11
2013-12-11 20:33:39 +00:00
committed by ShadowNinja
parent 33de69a173
commit d9ef072305
4 changed files with 16 additions and 6 deletions

View File

@@ -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; }