@@ -143,7 +143,7 @@ void LANAPI::reset( void )
143143 {
144144 LANMessage msg;
145145 fillInLANMessage ( &msg );
146- msg.LANMessageType = LANMessage::MSG_REQUEST_LOBBY_LEAVE;
146+ msg.messageType = LANMessage::MSG_REQUEST_LOBBY_LEAVE;
147147 sendMessage (&msg);
148148 }
149149 m_transport->update ();
@@ -355,9 +355,9 @@ void LANAPI::update( void )
355355 }
356356
357357 LANMessage *msg = (LANMessage *)(m_transport->m_inBuffer [i].data );
358- // DEBUG_LOG(("LAN message type %s from %ls (%s@%s)", GetMessageTypeString(msg->LANMessageType ).str(),
358+ // DEBUG_LOG(("LAN message type %s from %ls (%s@%s)", GetMessageTypeString(msg->messageType ).str(),
359359 // msg->name, msg->userName, msg->hostName));
360- switch (msg->LANMessageType )
360+ switch (msg->messageType )
361361 {
362362 // Location specification
363363 case LANMessage::MSG_REQUEST_LOCATIONS: // Hey, where is everybody?
@@ -426,7 +426,7 @@ void LANAPI::update( void )
426426 break ;
427427
428428 default :
429- DEBUG_LOG ((" Unknown LAN message type %d" , msg->LANMessageType ));
429+ DEBUG_LOG ((" Unknown LAN message type %d" , msg->messageType ));
430430 }
431431
432432 // Mark it as read
@@ -518,7 +518,7 @@ void LANAPI::update( void )
518518 // Actually, fake a host leaving message. :)
519519 LANMessage msg;
520520 fillInLANMessage ( &msg );
521- msg.LANMessageType = LANMessage::MSG_REQUEST_GAME_LEAVE;
521+ msg.messageType = LANMessage::MSG_REQUEST_GAME_LEAVE;
522522 wcslcpy (msg.name , m_currentGame->getPlayerName (0 ).str (), ARRAY_SIZE (msg.name ));
523523 handleRequestGameLeave (&msg, m_currentGame->getIP (0 ));
524524 UnicodeString text;
@@ -536,7 +536,7 @@ void LANAPI::update( void )
536536 fillInLANMessage ( &msg );
537537 UnicodeString theStr;
538538 theStr.format (TheGameText->fetch (" LAN:PlayerDropped" ), m_currentGame->getPlayerName (p).str ());
539- msg.LANMessageType = LANMessage::MSG_REQUEST_GAME_LEAVE;
539+ msg.messageType = LANMessage::MSG_REQUEST_GAME_LEAVE;
540540 wcslcpy (msg.name , m_currentGame->getPlayerName (p).str (), ARRAY_SIZE (msg.name ));
541541 handleRequestGameLeave (&msg, m_currentGame->getIP (p));
542542 OnChat (UnicodeString::TheEmptyString, m_localIP, theStr, LANCHAT_SYSTEM);
@@ -612,7 +612,7 @@ void LANAPI::update( void )
612612void LANAPI::RequestLocations ( void )
613613{
614614 LANMessage msg;
615- msg.LANMessageType = LANMessage::MSG_REQUEST_LOCATIONS;
615+ msg.messageType = LANMessage::MSG_REQUEST_LOCATIONS;
616616 fillInLANMessage ( &msg );
617617 sendMessage (&msg);
618618}
@@ -632,7 +632,7 @@ void LANAPI::RequestGameJoin( LANGameInfo *game, UnsignedInt ip /* = 0 */ )
632632 }
633633
634634 LANMessage msg;
635- msg.LANMessageType = LANMessage::MSG_REQUEST_JOIN;
635+ msg.messageType = LANMessage::MSG_REQUEST_JOIN;
636636 fillInLANMessage ( &msg );
637637 msg.GameToJoin .gameIP = game->getSlot (0 )->getIP ();
638638 msg.GameToJoin .exeCRC = TheGlobalData->m_exeCRC ;
@@ -665,7 +665,7 @@ void LANAPI::RequestGameJoinDirectConnect(UnsignedInt ipaddress)
665665 m_directConnectRemoteIP = ipaddress;
666666
667667 LANMessage msg;
668- msg.LANMessageType = LANMessage::MSG_REQUEST_GAME_INFO;
668+ msg.messageType = LANMessage::MSG_REQUEST_GAME_INFO;
669669 fillInLANMessage (&msg);
670670 msg.PlayerInfo .ip = GetLocalIP ();
671671 wcslcpy (msg.PlayerInfo .playerName , m_name.str (), ARRAY_SIZE (msg.PlayerInfo .playerName ));
@@ -679,7 +679,7 @@ void LANAPI::RequestGameJoinDirectConnect(UnsignedInt ipaddress)
679679void LANAPI::RequestGameLeave ( void )
680680{
681681 LANMessage msg;
682- msg.LANMessageType = LANMessage::MSG_REQUEST_GAME_LEAVE;
682+ msg.messageType = LANMessage::MSG_REQUEST_GAME_LEAVE;
683683 fillInLANMessage ( &msg );
684684 wcslcpy (msg.PlayerInfo .playerName , m_name.str (), ARRAY_SIZE (msg.PlayerInfo .playerName ));
685685 sendMessage (&msg);
@@ -709,7 +709,7 @@ void LANAPI::RequestGameAnnounce( void )
709709 {
710710 LANMessage reply;
711711 fillInLANMessage ( &reply );
712- reply.LANMessageType = LANMessage::MSG_GAME_ANNOUNCE;
712+ reply.messageType = LANMessage::MSG_GAME_ANNOUNCE;
713713
714714 AsciiString gameOpts = GameInfoToAsciiString (m_currentGame);
715715 strlcpy (reply.GameInfo .options ,gameOpts.str (), ARRAY_SIZE (reply.GameInfo .options ));
@@ -729,7 +729,7 @@ void LANAPI::RequestAccept( void )
729729
730730 LANMessage msg;
731731 fillInLANMessage ( &msg );
732- msg.LANMessageType = LANMessage::MSG_SET_ACCEPT;
732+ msg.messageType = LANMessage::MSG_SET_ACCEPT;
733733 msg.Accept .isAccepted = true ;
734734 wcslcpy (msg.Accept .gameName , m_currentGame->getName ().str (), ARRAY_SIZE (msg.Accept .gameName ));
735735 sendMessage (&msg);
@@ -742,7 +742,7 @@ void LANAPI::RequestHasMap( void )
742742
743743 LANMessage msg;
744744 fillInLANMessage ( &msg );
745- msg.LANMessageType = LANMessage::MSG_MAP_AVAILABILITY;
745+ msg.messageType = LANMessage::MSG_MAP_AVAILABILITY;
746746 msg.MapStatus .hasMap = m_currentGame->getSlot (m_currentGame->getLocalSlotNum ())->hasMap ();
747747 wcslcpy (msg.MapStatus .gameName , m_currentGame->getName ().str (), ARRAY_SIZE (msg.MapStatus .gameName ));
748748 CRC mapNameCRC;
@@ -782,7 +782,7 @@ void LANAPI::RequestChat( UnicodeString message, ChatType format )
782782 LANMessage msg;
783783 fillInLANMessage ( &msg );
784784 wcslcpy (msg.Chat .gameName , (m_currentGame) ? m_currentGame->getName ().str () : L" " , ARRAY_SIZE (msg.Chat .gameName ));
785- msg.LANMessageType = LANMessage::MSG_CHAT;
785+ msg.messageType = LANMessage::MSG_CHAT;
786786 msg.Chat .chatType = format;
787787 wcslcpy (msg.Chat .message , message.str (), ARRAY_SIZE (msg.Chat .message ));
788788 sendMessage (&msg);
@@ -796,7 +796,7 @@ void LANAPI::RequestGameStart( void )
796796 return ;
797797
798798 LANMessage msg;
799- msg.LANMessageType = LANMessage::MSG_GAME_START;
799+ msg.messageType = LANMessage::MSG_GAME_START;
800800 fillInLANMessage ( &msg );
801801 sendMessage (&msg);
802802 m_transport->update (); // force a send
@@ -820,7 +820,7 @@ void LANAPI::RequestGameStartTimer( Int seconds )
820820 m_gameStartSeconds = (seconds) ? seconds - 1 : 0 ;
821821
822822 LANMessage msg;
823- msg.LANMessageType = LANMessage::MSG_GAME_START_TIMER;
823+ msg.messageType = LANMessage::MSG_GAME_START_TIMER;
824824 msg.StartTimer .seconds = seconds;
825825 fillInLANMessage ( &msg );
826826 sendMessage (&msg);
@@ -838,7 +838,7 @@ void LANAPI::RequestGameOptions( AsciiString gameOptions, Bool isPublic, Unsigne
838838
839839 LANMessage msg;
840840 fillInLANMessage ( &msg );
841- msg.LANMessageType = LANMessage::MSG_GAME_OPTIONS;
841+ msg.messageType = LANMessage::MSG_GAME_OPTIONS;
842842 strlcpy (msg.GameOptions .options , gameOptions.str (), ARRAY_SIZE (msg.GameOptions .options ));
843843 sendMessage (&msg, ip);
844844
@@ -941,7 +941,7 @@ void LANAPI::RequestGameCreate( UnicodeString gameName, Bool isDirectConnect )
941941 msg.GameInfo.ip[player] = myGame->getIP(player);
942942 msg.GameInfo.playerAccepted[player] = myGame->getAccepted(player);
943943 }
944- msg.LANMessageType = LANMessage::MSG_GAME_ANNOUNCE;
944+ msg.messageType = LANMessage::MSG_GAME_ANNOUNCE;
945945*/
946946 OnGameCreate (LANAPIInterface::RET_OK);
947947}
@@ -1003,7 +1003,7 @@ void LANAPI::RequestSlotList( void )
10031003{
10041004
10051005 LANMessage reply;
1006- reply.LANMessageType = LANMessage::MSG_GAME_ANNOUNCE;
1006+ reply.messageType = LANMessage::MSG_GAME_ANNOUNCE;
10071007 wcslcpy(reply.name, m_name.str(), ARRAY_SIZE(reply.name));
10081008 int player;
10091009 for (player = 0; player < MAX_SLOTS; ++player)
@@ -1038,7 +1038,7 @@ void LANAPI::RequestSetName( UnicodeString newName )
10381038 m_name = newName;
10391039 LANMessage msg;
10401040 fillInLANMessage ( &msg );
1041- msg.LANMessageType = LANMessage::MSG_LOBBY_ANNOUNCE;
1041+ msg.messageType = LANMessage::MSG_LOBBY_ANNOUNCE;
10421042 sendMessage (&msg);
10431043
10441044 // Update the interface
@@ -1076,7 +1076,7 @@ void LANAPI::fillInLANMessage( LANMessage *msg )
10761076void LANAPI::RequestLobbyLeave ( Bool forced )
10771077{
10781078 LANMessage msg;
1079- msg.LANMessageType = LANMessage::MSG_REQUEST_LOBBY_LEAVE;
1079+ msg.messageType = LANMessage::MSG_REQUEST_LOBBY_LEAVE;
10801080 fillInLANMessage ( &msg );
10811081 sendMessage (&msg);
10821082
@@ -1273,7 +1273,7 @@ void LANAPI::setIsActive(Bool isActive) {
12731273 if ((m_inLobby == FALSE ) && (m_currentGame != NULL )) {
12741274 LANMessage msg;
12751275 fillInLANMessage ( &msg );
1276- msg.LANMessageType = LANMessage::MSG_INACTIVE;
1276+ msg.messageType = LANMessage::MSG_INACTIVE;
12771277 sendMessage (&msg);
12781278 DEBUG_LOG ((" LANAPI::setIsActive - sent an IsActive message" ));
12791279 }
0 commit comments