diff --git a/client/CMT.cpp b/client/CMT.cpp index 318c60c9d..53d154ffb 100644 --- a/client/CMT.cpp +++ b/client/CMT.cpp @@ -529,8 +529,9 @@ void processCommand(const std::string &message) std::string cn; //command name readed >> cn; - if(LOCPLINT && LOCPLINT->cingconsole) - LOCPLINT->cingconsole->print(message); +// Check mantis issue 2292 for details +// if(LOCPLINT && LOCPLINT->cingconsole) +// LOCPLINT->cingconsole->print(message); if(ermInteractiveMode) { @@ -789,11 +790,12 @@ void processCommand(const std::string &message) Settings session = settings.write["session"]; session["autoSkip"].Bool() = !session["autoSkip"].Bool(); } - else if(client && client->serv && client->serv->connected && LOCPLINT) //send to server + // Check mantis issue 2292 for details +/* else if(client && client->serv && client->serv->connected && LOCPLINT) //send to server { boost::unique_lock un(*LOCPLINT->pim); LOCPLINT->cb->sendMessage(message); - } + }*/ } //plays intro, ends when intro is over or button has been pressed (handles events) diff --git a/client/NetPacksClient.cpp b/client/NetPacksClient.cpp index 5453fbc22..eb95d44b9 100644 --- a/client/NetPacksClient.cpp +++ b/client/NetPacksClient.cpp @@ -819,10 +819,10 @@ void SaveGame::applyCl(CClient *cl) void PlayerMessage::applyCl(CClient *cl) { - std::ostringstream str; - str << "Player "<< player <<" sends a message: " << text; + logNetwork->debugStream() << "Player "<< player <<" sends a message: " << text; - logNetwork->debugStream() << str.str(); + std::ostringstream str; + str << cl->getPlayer(player)->nodeName() <<": " << text; if(LOCPLINT) LOCPLINT->cingconsole->print(str.str()); } diff --git a/client/windows/CAdvmapInterface.cpp b/client/windows/CAdvmapInterface.cpp index e1b96e049..2f9958a9c 100644 --- a/client/windows/CAdvmapInterface.cpp +++ b/client/windows/CAdvmapInterface.cpp @@ -881,7 +881,7 @@ void CAdvMapInt::showAll(SDL_Surface * to) statusbar.show(to); - LOCPLINT->cingconsole->showAll(to); + LOCPLINT->cingconsole->show(to); } bool CAdvMapInt::isHeroSleeping(const CGHeroInstance *hero) @@ -958,7 +958,7 @@ void CAdvMapInt::show(SDL_Surface * to) for(int i=0;i<4;i++) blitAt(gems[i]->ourImages[LOCPLINT->playerID.getNum()].bitmap,ADVOPT.gemX[i],ADVOPT.gemY[i],to); updateScreen=false; - LOCPLINT->cingconsole->showAll(to); + LOCPLINT->cingconsole->show(to); } else if (terrain.needsAnimUpdate()) { diff --git a/config/resolutions.json b/config/resolutions.json index 1917a62da..e0e83be0b 100644 --- a/config/resolutions.json +++ b/config/resolutions.json @@ -3,7 +3,7 @@ [ { "resolution": { "x": 800, "y": 600 }, - "InGameConsole": { "maxInputPerLine": 60, "maxOutputPerLine": 39 }, + "InGameConsole": { "maxInputPerLine": 60, "maxOutputPerLine": 60 }, "AdvMap": { "x": 7, "y": 7, "width": 594, "height": 546, "smoothMove": 1, "puzzleSepia": 1, "objectFading" : 1, "screenFading" : 1 }, "InfoBox": { "x": 605, "y": 389 }, "gem0": { "x": 6, "y": 508, "graphic": "agemLL.def" },