mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 06:31:19 +02:00
- bugfix for not finding hud for scenarios with embedded techtree
This commit is contained in:
@@ -521,7 +521,8 @@ void Game::loadHudTexture(const GameSettings *settings)
|
|||||||
{
|
{
|
||||||
string factionName = "";
|
string factionName = "";
|
||||||
string techName = settings->getTech();
|
string techName = settings->getTech();
|
||||||
string scenarioDir =settings->getScenarioDir();
|
string scenarioDir = extractDirectoryPathFromFile(settings->getScenarioDir());
|
||||||
|
//printf("In loadHudTexture, scenarioDir [%s]\n",scenarioDir.c_str());
|
||||||
|
|
||||||
for(int i=0; i < settings->getFactionCount(); ++i ) {
|
for(int i=0; i < settings->getFactionCount(); ++i ) {
|
||||||
if(settings->getFactionControl(i) == ctHuman){
|
if(settings->getFactionControl(i) == ctHuman){
|
||||||
|
@@ -78,7 +78,7 @@ TextFTGL::TextFTGL(FontTextHandlerType type) : Text(type) {
|
|||||||
delete ftFont; ftFont = NULL;
|
delete ftFont; ftFont = NULL;
|
||||||
free((void*)fontFile);
|
free((void*)fontFile);
|
||||||
fontFile = NULL;
|
fontFile = NULL;
|
||||||
throw runtime_error("FTGL: error loading font");
|
throw runtime_error(string("FTGL: error loading font: ") + string(fontFile));
|
||||||
}
|
}
|
||||||
free((void*)fontFile);
|
free((void*)fontFile);
|
||||||
fontFile = NULL;
|
fontFile = NULL;
|
||||||
|
Reference in New Issue
Block a user