Fixed the code-side confusion of track description vs designer (track exporter needs to be adapted accordingly)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4754 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
263b94c706
commit
4119544ed7
@ -71,6 +71,9 @@ TrackInfoDialog::TrackInfoDialog(const std::string& trackIdent, const irr::core:
|
||||
|
||||
core::rect< s32 > creator_info_area(0, hscores_y_to, m_area.getWidth()/2, y2);
|
||||
|
||||
std::cout << "(( Track author : " << stringc(track->getDesigner().c_str()).c_str()
|
||||
<< " - " << track->getDesigner().size() << " chars )))\n";
|
||||
|
||||
//I18N: when showing who is the author of track '%s' (place %s where the name of the author should appear)
|
||||
stringw text = StringUtils::insertValues(_("Track by %s"), track->getDesigner().c_str());
|
||||
|
||||
|
@ -62,7 +62,7 @@ Track::Track(std::string filename)
|
||||
m_root = StringUtils::getPath(StringUtils::removeExtension(m_filename));
|
||||
m_ident = StringUtils::getBasename(m_root);
|
||||
m_item_style = "";
|
||||
m_description = "";
|
||||
//m_description = "";
|
||||
m_designer = "";
|
||||
m_screenshot = "";
|
||||
m_version = 0;
|
||||
@ -202,7 +202,7 @@ void Track::loadTrackInfo()
|
||||
root->get("name", &temp_name);
|
||||
m_name = _(temp_name.c_str());
|
||||
|
||||
root->get("description", &m_description);
|
||||
//root->get("description", &m_description);
|
||||
root->get("designer", &m_designer);
|
||||
root->get("version", &m_version);
|
||||
std::vector<std::string> filenames;
|
||||
|
@ -213,7 +213,7 @@ public:
|
||||
/** Returns the filename of this track. */
|
||||
const std::string& getFilename () const {return m_filename; }
|
||||
|
||||
const std::string& getDescription () const {return m_description; }
|
||||
//const std::string& getDescription () const {return m_description; }
|
||||
const std::string& getDesigner () const {return m_designer; }
|
||||
|
||||
/** Returns an absolute path to the screenshot file of this track */
|
||||
|
Loading…
Reference in New Issue
Block a user