mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
cleanup
This commit is contained in:
parent
792ee63f22
commit
b98954f95e
5 changed files with 11 additions and 9 deletions
|
|
@ -488,7 +488,10 @@ void PlayerController::updateInteraction(const Input& inputEvents, float delta)
|
|||
}
|
||||
const auto& bindings = inputEvents.getBindings();
|
||||
bool xkey = bindings.active(BIND_PLAYER_FAST_INTERACTOIN);
|
||||
float maxDistance = xkey ? 200.0f : player.getMaxInteractionDistance();
|
||||
float maxDistance = player.getMaxInteractionDistance();
|
||||
if (xkey) {
|
||||
maxDistance *= 100.0;
|
||||
}
|
||||
bool longInteraction = interactionTimer <= 0 || xkey;
|
||||
bool lclick = bindings.jactive(BIND_PLAYER_DESTROY) ||
|
||||
(longInteraction && bindings.active(BIND_PLAYER_DESTROY));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue