mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
Fixed a bug that program crashes when it receive regatta xml during the race, as it doesn't know how to handle the xml.
#story[984]
This commit is contained in:
@@ -79,7 +79,6 @@ public class ClientPacketParser {
|
||||
extractDisplayMessage(packet);
|
||||
break;
|
||||
case XML_MESSAGE:
|
||||
newRaceXmlReceived = true;
|
||||
extractXmlMessage(packet);
|
||||
break;
|
||||
case RACE_START_STATUS:
|
||||
@@ -292,6 +291,7 @@ public class ClientPacketParser {
|
||||
}
|
||||
|
||||
xmlObject.constructXML(doc, messageType);
|
||||
|
||||
if (messageType == 7) { //7 is the boat XML
|
||||
boats = xmlObject.getBoatXML().getCompetingBoats();
|
||||
// Set/Update the ClientState boats after receiving new boat xml.
|
||||
|
||||
Reference in New Issue
Block a user