ok until my last change of Widget. now Widget has std::string's as members, so initializing
like that is not possible anymore .. my debian crashed there .. added an initialization-list to Widget's ctor
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
old:
std::vector<CupData*> m_all_cups;
new:
std::vector<CupData> m_all_cups;
related:
changed RaceManager::setGrandPrix(const CupData &cup_) to const reference rather than pointer to CupData
(2) made vector CupData::m_tracks private and added getter
(3) CupData::m_name was passed in GrandPrixSelect::GrandPrixSelect() to WidgetSet as const char*
then it was passed to Widget::_text. changed the latter to std::string and passed it as std::string
(4) changed Widget::count_text to std::string as well ..
(5) tracked down all uses of Widget::count_text & Widget::_text to plib. changed
all funcs in between to work with std::string rather than const char*
Font::getBBox
WidgetSet::set_label
WidgetSet::get_label
WidgetSet::start
WidgetSet::state
WidgetSet::label
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1238 178a84e3-b1eb-0310-8ba1-8eac791a3b58
allocated RaceGUI::TimedMessage's were not deleted, only erased from the vector
RaceGUI::cleanupMessages(): fixed iterator usage for std::vector.erase - the returned iterator must be used, the passed iterator becomes invalid after erase, so one has to use the returned one
changed vector-type RaceGUI::AllMessageType to vector of objects, rather than vector of pointers .. no risk of memory-leaks here anymore ..
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1237 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(1) CreditsMenu::CreditsMenu changed file-open-mode from "ra" to "r"
(2) added fclose'ing file in CreditsMenu's ctor
(3) CreditsMenu::m_string_list removed since base-class ScrolledText already has that member,
made it private in base-class to prevent confusion, since base-class has
member-func setText to *set* that member ;)
made all other member-vars of ScrolledText private too ..
(4) changed typedef of StringList from
typedef std::vector<char*> StringList;
to
typedef std::vector<std::string> StringList;
there was a memory-leak in class CreditsMenu, strings were pushed back
into StringList via strdup, which (m)allocated memory for the string,
so we should have freed it by calling free for each item in vector,
so i choosed the all-inclusive std::string :)
and moved typedef of StringList into class ScrolledText from global scope
(5) removed cleaning-up-code for m_string_list from CreditsMenu's dtor, nothing
to clean for us, since vector's and string's dtor takes care of it
(6) changed ScrolledText::setText (StringList const &sl_) param to const reference
for the sake of efficiency .. we dont want to copy here
hope we dont get problems with windows newline-style \r\n .. tried to take care of
that ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1223 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) The 'unlimited rocket' cheat is now bound to F7
(before it was a clear key, which isn't available on
all keyboards - at least not on mine).
Bullet only:
3) Gear parameters are now configureable and can
be specified in stk_config.data and separately
for each kart.
4) An explosion will somewhat push other karts that
are close by away (some feedback on this feature
is welcome - the impulse can be set in the
stk_config file).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1214 178a84e3-b1eb-0310-8ba1-8eac791a3b58
including a defineable max-speed-reverse-ratio (bullet only).
Added a getsProjectile() when get hit by a homing missile (bullet only).
Modified forceCrash() for bullet.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1205 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Added options:
--stk-config FILE
--mode N to set difficulty
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
non-bullet parameters. Bullet now has separate parameters
for mass, steer angle, and enigne power.
2) bullet only: Added suspension rest parameter (which might fix
the problem of karts not working on tuxtrack and other tracks).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1201 178a84e3-b1eb-0310-8ba1-8eac791a3b58
random one of those specified is played.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1188 178a84e3-b1eb-0310-8ba1-8eac791a3b58