summaryrefslogtreecommitdiff
path: root/network_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'network_data.h')
-rw-r--r--network_data.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/network_data.h b/network_data.h
index a29b1ac1f..6839cfecd 100644
--- a/network_data.h
+++ b/network_data.h
@@ -91,12 +91,11 @@ typedef enum {
// Actions that can be used for NetworkTextMessage
typedef enum {
- NETWORK_ACTION_JOIN_LEAVE,
+ NETWORK_ACTION_JOIN,
+ NETWORK_ACTION_LEAVE,
NETWORK_ACTION_CHAT,
NETWORK_ACTION_CHAT_PLAYER,
NETWORK_ACTION_CHAT_CLIENT,
- NETWORK_ACTION_CHAT_TO_CLIENT,
- NETWORK_ACTION_CHAT_TO_PLAYER,
NETWORK_ACTION_GIVE_MONEY,
NETWORK_ACTION_NAME_CHANGE,
} NetworkAction;
@@ -212,7 +211,7 @@ void NetworkAddCommandQueue(NetworkClientState *cs, CommandPacket *cp);
// from network.c
void NetworkCloseClient(NetworkClientState *cs);
-void CDECL NetworkTextMessage(NetworkAction action, uint16 color, const char *name, const char *str, ...);
+void CDECL NetworkTextMessage(NetworkAction action, uint16 color, bool self_send, const char *name, const char *str, ...);
void NetworkGetClientName(char *clientname, size_t size, const NetworkClientState *cs);
uint NetworkCalculateLag(const NetworkClientState *cs);
byte NetworkGetCurrentLanguageIndex();