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:
milkwx3
2026-06-15 15:36:39 +03:00
parent 9b9e554c89
commit 0fc1cfb0aa
18 changed files with 159 additions and 77 deletions
+10 -5
View File
@@ -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