mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
remove not needed const
This commit is contained in:
parent
240b406332
commit
8ad1c7a438
2 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue