diff --git a/lib/netplay/netplay.c b/lib/netplay/netplay.c index ed16b22de..5eaf6a55b 100644 --- a/lib/netplay/netplay.c +++ b/lib/netplay/netplay.c @@ -63,19 +63,6 @@ unsigned int masterserver_port = 0, gameserver_port = 0; */ #define NET_BUFFER_SIZE (MaxMsgSize) // Would be 8K -// Lobby Connection errors - -typedef enum -{ - ERROR_NOERROR, - ERROR_CONNECTION, - ERROR_FULL, - ERROR_CHEAT, - ERROR_KICKED, - ERROR_WRONGVESION, - ERROR_WRONGPASSWORD // NOTE WRONG_PASSWORD results in conflict -} LOBBY_ERROR_TYPES; - // HACK(s) to allow us to call a src/multi*.c function extern void recvMultiStats(void); // from src/multistat.c extern BOOL sendTextMessage(const char *pStr, BOOL all); // from src/multiplay.c diff --git a/lib/netplay/netplay.h b/lib/netplay/netplay.h index 149bcfd02..3d502154f 100644 --- a/lib/netplay/netplay.h +++ b/lib/netplay/netplay.h @@ -28,6 +28,20 @@ #include "nettypes.h" +// Lobby Connection errors + +typedef enum +{ + ERROR_NOERROR, + ERROR_CONNECTION, + ERROR_FULL, + ERROR_CHEAT, + ERROR_KICKED, + ERROR_WRONGVESION, + ERROR_WRONGPASSWORD // NOTE WRONG_PASSWORD results in conflict +} LOBBY_ERROR_TYPES; + + typedef enum { NET_DROID, //0 a new droid diff --git a/src/keyedit.c b/src/keyedit.c index 704d49a75..0cfee8f9c 100644 --- a/src/keyedit.c +++ b/src/keyedit.c @@ -48,6 +48,7 @@ #include "intdisplay.h" #include "lib/sound/audio_id.h" #include "lib/ivis_common/pieblitfunc.h" +#include "lib/netplay/netplay.h" #include "multiint.h" // //////////////////////////////////////////////////////////////////////////// diff --git a/src/multiint.c b/src/multiint.c index 4d88f7758..bc58a5760 100644 --- a/src/multiint.c +++ b/src/multiint.c @@ -170,7 +170,7 @@ static void addChatBox (void); static void disableMultiButs (void); static void processMultiopWidgets(UDWORD); static void SendFireUp (void); -//void kickPlayer (UDWORD dpid, const char *reason); + void runMultiOptions (void); BOOL startMultiOptions (BOOL); void frontendMultiMessages(void); diff --git a/src/multiint.h b/src/multiint.h index 750fcc868..35c547992 100644 --- a/src/multiint.h +++ b/src/multiint.h @@ -24,20 +24,6 @@ #ifndef __INCLUDED_SRC_MULTIINT_H__ #define __INCLUDED_SRC_MULTIINT_H__ - -// Lobby Connection errors - -typedef enum -{ - ERROR_NOERROR, - ERROR_CONNECTION, - ERROR_FULL, - ERROR_CHEAT, - ERROR_KICKED, - ERROR_WRONGVESION, - ERROR_WRONGPASSWORD // NOTE WRONG_PASSWORD results in conflict -} LOBBY_ERROR_TYPES; - extern LOBBY_ERROR_TYPES getLobbyError(void); extern void setLobbyError(LOBBY_ERROR_TYPES error_type); diff --git a/src/power.c b/src/power.c index 70c000796..9101f83e0 100644 --- a/src/power.c +++ b/src/power.c @@ -31,7 +31,7 @@ #include "lib/sound/audio.h" #include "objmem.h" #include "frontend.h" - +#include "lib/netplay/netplay.h" #include "multiplay.h" #include "multiint.h"