1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-03 00:46:55 +02:00

* a lot of improvements

* started making an infobar
This commit is contained in:
Michał W. Urbańczyk
2007-09-30 16:16:00 +00:00
parent cfc94847a1
commit 8421c901a4
17 changed files with 137 additions and 32 deletions

View File

@ -11,8 +11,9 @@
#include "mapHandler.h"
#include <sstream>
int internalFunc(void * nothingUsed)
int internalFunc(void * callback)
{
CCallback * cb = (CCallback*)callback;
char * usersMessage = new char[500];
std::string readed;
while(true)
@ -44,7 +45,7 @@ int internalFunc(void * nothingUsed)
break;
case 'M': //move hero
readed>>heronum>>dest;
CGI->state->cb->moveHero(heronum, dest);
cb->moveHero(heronum, dest);
break;
}
//SDL_Delay(100);
@ -54,5 +55,5 @@ int internalFunc(void * nothingUsed)
void CConsoleHandler::runConsole()
{
SDL_Thread * myth = SDL_CreateThread(&internalFunc, NULL);
SDL_Thread * myth = SDL_CreateThread(&internalFunc, cb);
}