aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2019-08-07 21:17:17 +0200
committerSmallJoker <mk939@ymail.com>2019-08-07 21:23:01 +0200
commit0c533dc4363747c8ccb4a0f519516cc8ae73d3fa (patch)
tree2f232792c990f9b132dce0783e1c04439a22d5f4
parent8ffe95913b717f516cc2c231f3189a20997d24c1 (diff)
downloadminetest-0c533dc4363747c8ccb4a0f519516cc8ae73d3fa.tar.gz
minetest-0c533dc4363747c8ccb4a0f519516cc8ae73d3fa.tar.bz2
minetest-0c533dc4363747c8ccb4a0f519516cc8ae73d3fa.zip
Game: Fix double BS multiplication
-rw-r--r--src/client/game.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 6ad87d351..ddd9c8662 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -2954,7 +2954,7 @@ void Game::processPlayerInteraction(f32 dtime, bool show_hud, bool show_debug)
const ItemStack &tool_item = player->getWieldedItem(&selected_item, &hand_item);
const ItemDefinition &selected_def = selected_item.getDefinition(itemdef_manager);
- f32 d = BS * getToolRange(selected_def, hand_item.getDefinition(itemdef_manager));
+ f32 d = getToolRange(selected_def, hand_item.getDefinition(itemdef_manager));
core::line3d<f32> shootline;