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:
parent
33de69a173
commit
d9ef072305
4 changed files with 16 additions and 6 deletions
|
@ -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; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue