1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

* dodano nieco więcej wypisywania na konsolkę czasów, wywalono rozpakowywanie wava

* bugfix błädu z CPreGame powodującego nie znikanie naciśniętego przycisku przy zmianie ekranów
This commit is contained in:
Michał W. Urbańczyk 2007-07-07 10:09:33 +00:00
parent 9749da6b68
commit 9a58212847
2 changed files with 8 additions and 3 deletions

11
CMT.cpp
View File

@ -211,6 +211,8 @@ void zerr(int ret)
}*/
int _tmain(int argc, _TCHAR* argv[])
{
THC timeHandler tmh;
THC tmh.getDif();
int xx=0, yy=0, zz=0;
SDL_Event sEvent;
srand ( time(NULL) );
@ -232,8 +234,8 @@ int _tmain(int argc, _TCHAR* argv[])
//initializing audio
CMusicHandler * mush = new CMusicHandler;
mush->initMusics();
CSndHandler snd("Heroes3.snd");
snd.extract("AELMMOVE.wav","snddd.wav");
//CSndHandler snd("Heroes3.snd");
//snd.extract("AELMMOVE.wav","snddd.wav");
//audio initialized
/*if(Mix_PlayMusic(mush->mainMenuWoG, -1)==-1) //uncomment this fragment to have music
@ -261,10 +263,12 @@ int _tmain(int argc, _TCHAR* argv[])
// fclose(ko);fclose(zr);
//}
SDL_WM_SetCaption(NAME,""); //set window title
THC std::cout<<"Inicjalizacja ekranu, czcionek, obslugi dzwieku: "<<tmh.getDif()<<std::endl;
CPreGame * cpg = new CPreGame();
THC std::cout<<"Razem inicjalizacja CPreGame: "<<tmh.getDif()<<std::endl;
cpg->mush = mush;
cpg->runLoop();
THC timeHandler tmh;
THC tmh.getDif();
CGameInfo * cgi = new CGameInfo;
CGameInfo::mainObj = cgi;
cgi->mush = mush;
@ -320,6 +324,7 @@ int _tmain(int argc, _TCHAR* argv[])
cgi->dobjinfo = new CDefObjInfoHandler;
cgi->dobjinfo->load();
THC std::cout<<"Inicjalizacja wszelakich handlerow: "<<tmh.getDif()<<std::endl;
std::string mapname;
//if (CPG) mapname = CPG->ourScenSel->mapsel.ourMaps[CPG->ourScenSel->mapsel.selected].filename;
//else mapname = "4gryf";

Binary file not shown.