msvc build fix

This commit is contained in:
MihailRis 2024-03-12 12:37:41 +03:00
parent eed6d4a438
commit 1addf869ec
4 changed files with 6 additions and 4 deletions

View File

@ -91,6 +91,7 @@ if (WIN32)
find_package(glm REQUIRED)
find_package(vorbis REQUIRED)
set(PNGLIB spng::spng)
set(VORBISLIB Vorbis::vorbis Vorbis::vorbisfile)
else()
find_package(Lua REQUIRED)
set(PNGLIB spng)

View File

@ -1,5 +1,6 @@
#include <string>
#include <memory>
#include <sstream>
#include "gui/controls.h"
#include "../audio/audio.h"

View File

@ -1,3 +1,6 @@
#define _USE_MATH_DEFINES
#include <cmath>
#include "PlayerController.h"
#include "../objects/Player.h"
@ -20,9 +23,6 @@
#include "../core_defs.h"
#define _USE_MATH_DEFINES
#include <cmath>
const float CAM_SHAKE_OFFSET = 0.025f;
const float CAM_SHAKE_OFFSET_Y = 0.031f;
const float CAM_SHAKE_SPEED = 1.75f;

View File

@ -65,7 +65,7 @@ inline audio::speakerid_t play_stream(
if (channel == -1)
return 0;
auto paths = scripting::engine->getResPaths();
fs::path file = paths->find(fs::path(filename));
fs::path file = paths->find(filename);
return audio::play_stream(
file,
glm::vec3(