Fix game crashing on NetworkingInit on Windows. Also add a 32-bit Windows build.
Also stubbed out InitSingleplayer in menu.cpp cuz this client doesn't want to work with servers correctly.
This commit is contained in:
+10
-5
@@ -1,9 +1,16 @@
|
||||
#if defined(WIN32)
|
||||
#include "external/fix_win32_compatibility.h"
|
||||
#ifdef WIN32 // FUCK WINDOWS
|
||||
#include "external/fix_win32_compatibility.h"
|
||||
#undef PlaySound
|
||||
#endif
|
||||
|
||||
#include <enet/enet.h>
|
||||
|
||||
#ifdef WIN32 // FUCK WINDOWS 2
|
||||
#undef PlaySound
|
||||
#undef Sound
|
||||
#endif
|
||||
#include "glfw_keycodes_to_string.h"
|
||||
#include "../PerlinNoise.hpp"
|
||||
#include <enet/enet.h>
|
||||
#include "raylib.h"
|
||||
#include "raymath.h"
|
||||
#include <stdint.h>
|
||||
@@ -371,7 +378,6 @@ extern int currentlySelected;
|
||||
extern GameState state;
|
||||
extern Texture2D cubemap;
|
||||
int TryConnect(const char *hostname);
|
||||
void InitSingleplayer();
|
||||
void GameModeCleanup();
|
||||
void DrawBackground();
|
||||
void InitMenu();
|
||||
@@ -610,7 +616,6 @@ void SavePlayerData();
|
||||
bool LoadPlayerData();
|
||||
void MS_PlaySound(Sound src,float pitch,float volume,Vector3 position);
|
||||
void MS_Update(float dt,Camera camera);
|
||||
void StartInternalServer(bool&started);
|
||||
void ServerNetworkUpdate();
|
||||
void StopInternalServer();
|
||||
#define INTERFACE 0
|
||||
|
||||
Reference in New Issue
Block a user