projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39fa249
)
Use true distance for block priority.
author
Lars Hofhansl
<larsh@apache.org>
Sun, 12 Mar 2017 04:50:14 +0000
(20:50 -0800)
committer
SmallJoker
<mk939@ymail.com>
Wed, 15 Mar 2017 19:30:34 +0000
(20:30 +0100)
src/clientiface.cpp
patch
|
blob
|
history
diff --git
a/src/clientiface.cpp
b/src/clientiface.cpp
index 76a34c392ae224bcffd6acc79054f9901eb0864c..11054969c24664d1550bd7af3bcb30150a0dc615 100644
(file)
--- a/
src/clientiface.cpp
+++ b/
src/clientiface.cpp
@@
-252,8
+252,8
@@
void RemoteClient::GetNextBlocks (
FOV setting. The default of 72 degrees is fine.
*/
- if(isBlockInSight(p, camera_pos, camera_dir, camera_fov, d_blocks_in_sight) == false)
- {
+ f32 dist;
+
if (!isBlockInSight(p, camera_pos, camera_dir, camera_fov, d_blocks_in_sight, &dist))
{
continue;
}
@@
-342,7
+342,7
@@
void RemoteClient::GetNextBlocks (
/*
Add block to send queue
*/
- PrioritySortedBlockTransfer q((float)d, p, peer_id);
+ PrioritySortedBlockTransfer q((float)d
ist
, p, peer_id);
dest.push_back(q);