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(
|
PlayerController::PlayerController(
|
||||||
Engine* const engine, Level* level,
|
Engine* engine, Level* level,
|
||||||
BlocksController* blocksController
|
BlocksController* blocksController
|
||||||
)
|
)
|
||||||
: engine(engine), level(level),
|
: engine(engine), level(level),
|
||||||
@ -485,7 +485,7 @@ void PlayerController::updateInteraction() {
|
|||||||
auto indices = level->content->getIndices();
|
auto indices = level->content->getIndices();
|
||||||
auto chunks = level->chunks.get();
|
auto chunks = level->chunks.get();
|
||||||
const auto& selection = player->selection;
|
const auto& selection = player->selection;
|
||||||
|
|
||||||
if (interactionTimer > 0.0f) {
|
if (interactionTimer > 0.0f) {
|
||||||
interactionTimer -= static_cast<float>(engine->getDelta());
|
interactionTimer -= static_cast<float>(engine->getDelta());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,7 +68,7 @@ class PlayerController {
|
|||||||
voxel* updateSelection(float maxDistance);
|
voxel* updateSelection(float maxDistance);
|
||||||
public:
|
public:
|
||||||
PlayerController(
|
PlayerController(
|
||||||
Engine* const engine, Level* level, BlocksController* blocksController
|
Engine* engine, Level* level, BlocksController* blocksController
|
||||||
);
|
);
|
||||||
void update(float delta, bool input, bool pause);
|
void update(float delta, bool input, bool pause);
|
||||||
void postUpdate(float delta, bool input, bool pause);
|
void postUpdate(float delta, bool input, bool pause);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user