cleanup
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user