msvc build fix
This commit is contained in:
parent
eed6d4a438
commit
1addf869ec
@ -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)
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <sstream>
|
||||
|
||||
#include "gui/controls.h"
|
||||
#include "../audio/audio.h"
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user