Fixed display of reset icon in the icons in the race gui.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-12-01 05:58:28 +00:00
parent 9cddb351cd
commit 7470074b4d

View File

@@ -47,10 +47,10 @@ struct initAttachmentType {attachmentType attachment; const char *file; const c
initAttachmentType iat[]=
{
{ATTACH_PARACHUTE, "parachute.b3d", "parachute-attach-icon.png"},
{ATTACH_BOMB, "bomb.b3d", "bomb-attach-icon.png"},
{ATTACH_ANVIL, "anchor.b3d", "anchor-attach-icon.png"},
{ATTACH_TINYTUX, "reset-button.b3d",NULL},
{ATTACH_MAX, "", ""},
{ATTACH_BOMB, "bomb.b3d", "bomb-attach-icon.png" },
{ATTACH_ANVIL, "anchor.b3d", "anchor-attach-icon.png" },
{ATTACH_TINYTUX, "reset-button.b3d","reset-attach-icon.png" },
{ATTACH_MAX, "", "" },
};
//-----------------------------------------------------------------------------
@@ -73,10 +73,12 @@ void AttachmentManager::loadModels()
m_attachments[iat[i].attachment]=irr_driver->getAnimatedMesh(full_path);
if(iat[i].icon_file)
{
std::string full_icon_path = file_manager->getModelFile(iat[i].icon_file);
m_all_icons[iat[i].attachment]=material_manager->getMaterial(full_icon_path,
/* full_path */ false,
/*make_permanent */ true);
std::string full_icon_path =
file_manager->getModelFile(iat[i].icon_file);
m_all_icons[iat[i].attachment] =
material_manager->getMaterial(full_icon_path,
/* full_path */ true,
/*make_permanent */ true);
}
} // for