mirror of https://github.com/OpenTTD/OpenTTD
(svn r1320) -Fix: fixed chat-bug (that from a certain moment, nobody could talk).. 1
variable was still byte instead of uint16 (with a very big tnx to guru3!)release/0.4.5
parent
461ca703ff
commit
a0716c39de
|
@ -917,7 +917,7 @@ DEF_SERVER_RECEIVE_COMMAND(PACKET_CLIENT_ACK)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, const char *msg, byte from_index)
|
void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, const char *msg, uint16 from_index)
|
||||||
{
|
{
|
||||||
NetworkClientState *cs;
|
NetworkClientState *cs;
|
||||||
NetworkClientInfo *ci, *ci_own, *ci_to;
|
NetworkClientInfo *ci, *ci_own, *ci_to;
|
||||||
|
|
|
@ -10,7 +10,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_SHUTDOWN);
|
||||||
DEF_SERVER_SEND_COMMAND(PACKET_SERVER_NEWGAME);
|
DEF_SERVER_SEND_COMMAND(PACKET_SERVER_NEWGAME);
|
||||||
|
|
||||||
bool NetworkFindName(char new_name[NETWORK_NAME_LENGTH]);
|
bool NetworkFindName(char new_name[NETWORK_NAME_LENGTH]);
|
||||||
void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, const char *msg, byte from_index);
|
void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, const char *msg, uint16 from_index);
|
||||||
|
|
||||||
bool NetworkServer_ReadPackets(NetworkClientState *cs);
|
bool NetworkServer_ReadPackets(NetworkClientState *cs);
|
||||||
void NetworkServer_Tick(void);
|
void NetworkServer_Tick(void);
|
||||||
|
|
Loading…
Reference in New Issue