1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00: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; }