|
@@ -43,6 +43,7 @@
|
|
|
#include <cstdlib>
|
|
|
#include "../lib/NetPacks.h"
|
|
|
#include "CMessage.h"
|
|
|
+#include "../hch/CObjectHandler.h"
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
#include "SDL_syswm.h"
|
|
@@ -421,6 +422,11 @@ void processCommand(const std::string &message)
|
|
|
{
|
|
|
gOnlyAI = true;
|
|
|
}
|
|
|
+ else if(cn == "mp" && adventureInt)
|
|
|
+ {
|
|
|
+ if(const CGHeroInstance *h = dynamic_cast<const CGHeroInstance *>(adventureInt->selection))
|
|
|
+ tlog0 << h->movement << "; max: " << h->maxMovePoints(true) << "/" << h->maxMovePoints(false) << std::endl;
|
|
|
+ }
|
|
|
else if(client && client->serv && client->serv->connected) //send to server
|
|
|
{
|
|
|
PlayerMessage pm(LOCPLINT->playerID,message);
|