* Fix include paths. Now it builds properly.

This commit is contained in:
iProgramInCpp
2023-08-05 15:34:07 +03:00
parent 71e700a300
commit bfdd5beb75
144 changed files with 267 additions and 212 deletions

View File

@@ -6,16 +6,17 @@
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#include "AppPlatform_windows.hpp"
#include "Mouse.hpp"
#include "thirdparty/stb_image.h"
#include "thirdparty/stb_image_write.h"
#define WIN32_LEAN_AND_MEAN
#include <fstream>
#include <sstream>
#include <shlobj.h>
#include "AppPlatform_windows.hpp"
#include "client/player/input/Mouse.hpp"
#include "thirdparty/stb_image.h"
#include "thirdparty/stb_image_write.h"
extern LPCTSTR g_GameTitle;
void AppPlatform_windows::initConsts()

View File

@@ -10,8 +10,8 @@
#include "compat/GL.hpp"
#include <ctime>
#include "Utils.hpp"
#include "AppPlatform.hpp"
#include "client/common/Utils.hpp"
#ifdef ORIGINAL_CODE
#error "This isn't original code. You probably shouldn't try to compile this"

View File

@@ -6,9 +6,9 @@
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#include "../../source/Base/Utils.hpp"
#include "SoundSystem_windows.hpp"
#define WIN32_LEAN_AND_MEAN
#include "SoundSystemWindows.hpp"
#include "client/common/Utils.hpp"
SoundSystemWindows::SoundSystemWindows()
{
@@ -105,8 +105,8 @@ void SoundSystemWindows::setListenerAngle(float degyaw, float degpitch)
return;
}
float yaw = degyaw * M_PI / 180.f;
float pitch = degpitch * M_PI / 180.f;
float yaw = degyaw * float(M_PI) / 180.f;
float pitch = degpitch * float(M_PI) / 180.f;
float lx = cosf(pitch) * sinf(yaw);
float ly = -sinf(pitch);

View File

@@ -21,7 +21,7 @@
#include <mmsystem.h>
#include <dsound.h>
#include "SoundData.hpp"
#include "client/sound/SoundData.hpp"
class SoundSystemWindows
{