Skip to content

Commit

Permalink
Game: Fix double BS multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed Aug 7, 2019
1 parent 8ffe959 commit 0c533dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/game.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 0c533dc

Please sign in to comment.