X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finterface.cpp;fp=src%2Finterface.cpp;h=12117f7d28632342b9746dddf588debe89caf38f;hb=76b3ec0f6aa0dacf6d4944a2787991f3585299e8;hp=e4888c5b5f35d1ee3f15a1b9d0f96190ec34b336;hpb=6e59f3102d6d64355d5a30b708a326327b089aaf;p=blank.git diff --git a/src/interface.cpp b/src/interface.cpp index e4888c5..12117f7 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -201,7 +201,7 @@ void Interface::PlaceBlock() { mod_chunk->Invalidate(); } -void Interface::RemoveBlock() { +void Interface::RemoveBlock() noexcept { if (!aim_chunk) return; aim_chunk->SetBlock(aim_block, remove); aim_chunk->Invalidate(); @@ -234,7 +234,7 @@ void Interface::SelectPrevious() { hud.Display(selection); } -void Interface::Handle(const SDL_WindowEvent &event) { +void Interface::Handle(const SDL_WindowEvent &event) noexcept { if (event.event == SDL_WINDOWEVENT_RESIZED) { hud.Viewport(event.data1, event.data2); } @@ -260,7 +260,7 @@ void Interface::Update(int dt) { } -void Interface::Render(DirectionalLighting &program) { +void Interface::Render(DirectionalLighting &program) noexcept { if (config.visual_disabled) return; if (aim_chunk) {