to have a better name for this class that will also
support a 'canon'/teleporter animation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11012 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Now a certain number of unique collisions in
a certain amount of time triggers auto rescue
(3 rescues in 3 seconds). This should fix
#576. The old handling is still left in place
(in case that some other rescues are better
caught by that code).
2) Removed unused m_collided variable (and related
stuff).
3) Fixed the 'crashed' callback functions in the
controller (which didn't work anymore, since
parameters were changed: kart called crash(),
but the AI controller only had crashed(Kart*),
so the empty dummy function in controller was
called).
4) Made nearly all virtual functions in Controller
pure, so that problems similar to 3) are
hopefully picked up at compile time.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11011 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Fixed memory leak by only adding the physical body
for exact shapes once.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11009 178a84e3-b1eb-0310-8ba1-8eac791a3b58
The solution isn't perfect. Accomodating for all 20 karts often
made things _too_ small, so I added a (somewhat arbitrary) treshold.
Also correct some doxygen/I18N comments while in that file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11005 178a84e3-b1eb-0310-8ba1-8eac791a3b58
a kart - track collision: AI karts will now steer towards
the center of the track while being pushed back. While
this does not fully fix#576, it improves the situation
in many cases.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11004 178a84e3-b1eb-0310-8ba1-8eac791a3b58
de-couple kart implementation and its interface. This
significantly reduces compile time when changing kart.hpp,
but is at this stage still work in progress.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Calling updateHighScores on every click on the reverse checkbox was a bit
optimistic, add a check that there are even highscores to show.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10996 178a84e3-b1eb-0310-8ba1-8eac791a3b58
For Wardje both tests (with and without Xxf86vm) failed because of gcc
being unable to execute 'as'. His error log showed also tests executed
by FindX11 (provided by CMake itself) failed because of this.
Not sure what is broken exactly but this patch circumvents it.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10980 178a84e3-b1eb-0310-8ba1-8eac791a3b58
warnings (which indicate a possible bug).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10971 178a84e3-b1eb-0310-8ba1-8eac791a3b58
skidding), and to make it easier to concatenate ghost
data. Skidding events are already stored, but not used
in replay atm.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10969 178a84e3-b1eb-0310-8ba1-8eac791a3b58
were for bonuses were changed, but are still not considered to be tweaked).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
started to skid, you can influence the turn radius
to a certain degree (stk_config.xml, reduce-turn-min
and -max).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
reduce compile time on controller changes).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
GhostKart was not called, since it was called during when
the contrsuctor of Kart was executed (at this time the
GhostKart vtable wasn't set up, so Kart::createPhysics)
was called - which resulted in a memory leak since all
physics parts of the kart were actually allocated (just
not used). To fix this, karts are not constructed in two
phases: first a constructor, followed by a call to init
(during which virtual function can be used).
Fixed several bugs were physics data for a GhostKart
were accessed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10947 178a84e3-b1eb-0310-8ba1-8eac791a3b58