1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Try to fix mxe build

This commit is contained in:
nordsoft 2022-10-29 21:10:21 +04:00
parent 6eb43d3834
commit 0a2a250379
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ void Lobby::serverCommand(const ServerCommand & command) try
QString joinStr;
switch(command.command)
{
case ERROR:
case SRVERROR:
protocolAssert(args.size());
chatMessage("System error:" + args[0]);
break;

View File

@ -17,7 +17,7 @@ enum ProtocolConsts
GREETING, USERNAME, MESSAGE, VERSION, CREATE, JOIN, LEAVE, READY,
//server consts
SESSIONS, CREATED, JOINED, KICKED, ERROR, CHAT, START, STATUS, HOST
SESSIONS, CREATED, JOINED, KICKED, SRVERROR, CHAT, START, STATUS, HOST
};
const QMap<ProtocolConsts, QString> ProtocolStrings
@ -39,7 +39,7 @@ const QMap<ProtocolConsts, QString> ProtocolStrings
{START, "START"}, //session_name:uuid
{HOST, "HOST"}, //host_uuid:players_count
{STATUS, "STATUS"}, //joined_players:player_name:is_ready
{ERROR, "ERROR"},
{SRVERROR, "ERROR"},
{CHAT, "MSG"} //username:message
};