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
in this case, accelerating should be braking (and
work with more force than just accelerating).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1155 178a84e3-b1eb-0310-8ba1-8eac791a3b58