summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2017-02-10 17:15:22 +0000
committerparamat <mat.gregory@virginmedia.com>2017-02-10 17:59:31 +0000
commit1de08e196182498a931b496f79b1c1eaf3de7ca4 (patch)
treeaf9aa73796ca223c9d0b72e455cebb0d49fddde2 /src/network
parentbb4db84bdbc7038a6ac495dd5f732f89ac40bfcc (diff)
downloadminetest-1de08e196182498a931b496f79b1c1eaf3de7ca4.tar.gz
minetest-1de08e196182498a931b496f79b1c1eaf3de7ca4.tar.bz2
minetest-1de08e196182498a931b496f79b1c1eaf3de7ca4.zip
Plantlike: Fix visual_scale being applied squared
This re-applies 2 commits that were reverted. Visual_scale was applied twice to plantlike by accident sometime between 2011 and 2013, squaring the requested scale value. Visual_scale is correctly applied once in it's other uses in signlike and torchlike. Two lines of code are removed, they also had no effect for the vast majority of nodes with the default visual_scale of 1.0. The texture continues to have it's base at ground level. Send sqrt(visual_scale) to old clients. Keep compatibility with protocol < 30 clients now that visual_scale is no longer applied twice to plantlike drawtype and mods are being updated to a new value.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkprotocol.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/networkprotocol.h b/src/network/networkprotocol.h
index a511d169b..5301cc91c 100644
--- a/src/network/networkprotocol.h
+++ b/src/network/networkprotocol.h
@@ -146,6 +146,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
PROTOCOL VERSION 30:
New ContentFeatures serialization version
Add node and tile color and palette
+ Fix plantlike visual_scale being applied squared and add compatibility
+ with pre-30 clients by sending sqrt(visual_scale)
*/
#define LATEST_PROTOCOL_VERSION 30