remove not needed const
This commit is contained in:
parent
240b406332
commit
8ad1c7a438
@ -189,7 +189,7 @@ void CameraControl::update(PlayerInput input, float delta, Chunks* chunks) {
|
||||
}
|
||||
|
||||
PlayerController::PlayerController(
|
||||
Engine* const engine, Level* level,
|
||||
Engine* engine, Level* level,
|
||||
BlocksController* blocksController
|
||||
)
|
||||
: engine(engine), level(level),
|
||||
@ -485,7 +485,7 @@ void PlayerController::updateInteraction() {
|
||||
auto indices = level->content->getIndices();
|
||||
auto chunks = level->chunks.get();
|
||||
const auto& selection = player->selection;
|
||||
|
||||
|
||||
if (interactionTimer > 0.0f) {
|
||||
interactionTimer -= static_cast<float>(engine->getDelta());
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ class PlayerController {
|
||||
voxel* updateSelection(float maxDistance);
|
||||
public:
|
||||
PlayerController(
|
||||
Engine* const engine, Level* level, BlocksController* blocksController
|
||||
Engine* engine, Level* level, BlocksController* blocksController
|
||||
);
|
||||
void update(float delta, bool input, bool pause);
|
||||
void postUpdate(float delta, bool input, bool pause);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user