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 bitsPerSample,
uint sampleRate uint sampleRate
) )
: al(al), : device(device),
device(device),
channels(channels), channels(channels),
bitsPerSample(bitsPerSample), bitsPerSample(bitsPerSample),
sampleRate(sampleRate) { sampleRate(sampleRate) {

View File

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

View File

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

View File

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