port: net: fix a bunch of access violations

This commit is contained in:
fgsfds committed 2024-01-07 19:54:27 +01:00
1 parent 4439fdf411
commit 4eca4a1f07
7 files changed
+46 -10

No files matched your search

+1 -1
View File
@@ -4728,7 +4728,7 @@ enum weaponnum {
#define NETMODE_SERVER 1
#define NETMODE_CLIENT 2
#define LOCALPLAYERCOUNT() (g_NetMode ? 1 : PLAYERCOUNT())
#define LOCALPLAYERCOUNT() playerGetLocalCount()
#endif
+1
View File
@@ -562,6 +562,7 @@ extern s32 g_NetMode;
#define TEX_FILTER_2D g_TexFilter2D
s32 playerGetCount(void);
s32 playerGetLocalCount(void);
#else // PLATFORM_N64
+1
View File
@@ -110,6 +110,7 @@ struct sndstate *playerSndStart(s32 arg0, s16 sound, struct sndstate **handle, s
#if MAX_PLAYERS > 4
s32 playerGetCount(void);
s32 playerGetLocalCount(void);
#endif
#ifndef PLATFORM_N64