mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Added hero selection (buggy)
This commit is contained in:
parent
8cb1c3ff90
commit
40607240b4
17
CMT.cpp
17
CMT.cpp
@ -268,6 +268,15 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
|
||||
cgi->townh = new CTownHandler;
|
||||
cgi->townh->loadNames();
|
||||
|
||||
CAbilityHandler * abilh = new CAbilityHandler;
|
||||
abilh->loadAbilities();
|
||||
cgi->abilh = abilh;
|
||||
CHeroHandler * heroh = new CHeroHandler;
|
||||
heroh->loadHeroes();
|
||||
heroh->loadPortraits();
|
||||
cgi->heroh = heroh;
|
||||
|
||||
THC std::cout<<"Loading .lods: "<<tmh.getDif()<<std::endl;
|
||||
CPreGame * cpg = new CPreGame(); //main menu and submenus
|
||||
THC std::cout<<"Initialization CPreGame (together): "<<tmh.getDif()<<std::endl;
|
||||
@ -311,13 +320,7 @@ int _tmain(int argc, _TCHAR* argv[])
|
||||
CCreatureHandler * creh = new CCreatureHandler;
|
||||
creh->loadCreatures();
|
||||
cgi->creh = creh;
|
||||
CAbilityHandler * abilh = new CAbilityHandler;
|
||||
abilh->loadAbilities();
|
||||
cgi->abilh = abilh;
|
||||
CHeroHandler * heroh = new CHeroHandler;
|
||||
heroh->loadHeroes();
|
||||
heroh->loadPortraits();
|
||||
cgi->heroh = heroh;
|
||||
|
||||
CSpellHandler * spellh = new CSpellHandler;
|
||||
spellh->loadSpells();
|
||||
cgi->spellh = spellh;
|
||||
|
BIN
CPreGame.cpp
BIN
CPreGame.cpp
Binary file not shown.
@ -60,7 +60,7 @@ class Options : public PreGameTab
|
||||
PlayerOptions(int serial, int player);
|
||||
Ecolor color;
|
||||
//SDL_Surface * bg;
|
||||
OptionSwitch left, right;
|
||||
OptionSwitch left, right, Hleft, Hright;
|
||||
int nr;
|
||||
};
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user