fix warnings

This commit is contained in:
MihailRis 2025-11-21 19:14:04 +03:00
parent 19665caead
commit 4f96ec47cd
4 changed files with 2 additions and 6 deletions

View File

@ -74,8 +74,7 @@ ALInputDevice::ALInputDevice(
uint bitsPerSample,
uint sampleRate
)
: al(al),
device(device),
: device(device),
channels(channels),
bitsPerSample(bitsPerSample),
sampleRate(sampleRate) {

View File

@ -108,7 +108,6 @@ namespace audio {
size_t read(char* buffer, size_t bufferSize) override;
private:
ALAudio* al;
ALCdevice* device;
uint channels;
uint bitsPerSample;

View File

@ -27,8 +27,7 @@ LevelController::LevelController(
: settings(engine->getSettings()),
level(std::move(levelPtr)),
chunks(std::make_unique<ChunksController>(*level)),
playerTickClock(20, 3),
localPlayer(clientPlayer) {
playerTickClock(20, 3) {
level->events->listen(LevelEventType::CHUNK_PRESENT, [](auto, Chunk* chunk) {
scripting::on_chunk_present(*chunk, chunk->flags.loaded);

View File

@ -20,7 +20,6 @@ class LevelController {
std::unique_ptr<ChunksController> chunks;
util::Clock playerTickClock;
Player* localPlayer;
public:
LevelController(Engine* engine, std::unique_ptr<Level> level, Player* clientPlayer);