From e4e870dcf4c4119e495ba12815721487b073508a Mon Sep 17 00:00:00 2001 From: Zhou Date: Thu, 28 Jun 2018 14:12:25 +0800 Subject: [PATCH] fix the wrong of the connection --- Classes/Inputfieldbox.cpp | 3 +-- Classes/Net/Client.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Inputfieldbox.cpp b/Classes/Inputfieldbox.cpp index 2664103..889ad52 100644 --- a/Classes/Inputfieldbox.cpp +++ b/Classes/Inputfieldbox.cpp @@ -1,5 +1,4 @@ #include "Inputfieldbox.h" -#include "Test/Test.h" #include "extensions\cocos-ext.h" #include "Net/Net.h" #include "WaittingRoom.h" @@ -55,7 +54,7 @@ bool Inputfield::init() auto error_label = Label::create("", "Arial", 30); error_label->setPosition(visibble_size.width / 2, visibble_size.height / 3); - error_label->setColor(Color3B::BLACK); + error_label->setColor(Color3B(255, 140, 0)); this->addChild(error_label); error_label->setTag(g_kErrorLabelFlag); diff --git a/Classes/Net/Client.cpp b/Classes/Net/Client.cpp index eb8c32f..80b25a7 100644 --- a/Classes/Net/Client.cpp +++ b/Classes/Net/Client.cpp @@ -163,6 +163,7 @@ void Client::endGame() void Client::setServerIp(std::string ip) { server_.address(boost::asio::ip::address::from_string(ip)); + message_server_.address(boost::asio::ip::address::from_string(ip)); } bool Client::excuteCommand(CommandImformation command)