remove not needed const

This commit is contained in:
ChancellorIkseew 2024-11-03 14:10:04 +10:00
parent 240b406332
commit 8ad1c7a438
2 changed files with 3 additions and 3 deletions

View File

@ -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());
}

View File

@ -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);