switch handling, fixed typo in bubble gum handling.
Sorted powerup handling according to order of POWERUP_*
defines, and added assert to default clause so that missing
handling of powerup items is detected earlier.
This should fix 3078892 - parachutes lasting long (most
likely due to AIs firing multi-parachutes one after
another, which adds up the parachute time).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6220 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Caused by an incorrect sign (which wasn't noticed earlier
because of bug 3081113).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6219 178a84e3-b1eb-0310-8ba1-8eac791a3b58
part of a track. Reason was an incorrect axis in the upright constraint (see bug
3081113).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6218 178a84e3-b1eb-0310-8ba1-8eac791a3b58
as result of estimated times on a track with invalid drivelines), see also
bug 3078740.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6180 178a84e3-b1eb-0310-8ba1-8eac791a3b58
falls down into the castle, it would be rescued to the floor of the castle, giving
it a huge benefit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
make sure that player ranking is always accurate. It's not used atm,
but around for testing.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6167 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(after all karts were loaded and therefore initialised with the original config
file default parameters), see bug 3072762.
-This line, and those below, will be ignored--
M main.cpp
M config/stk_config.cpp
M config/stk_config.hpp
M items/item_manager.cpp
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6166 178a84e3-b1eb-0310-8ba1-8eac791a3b58
have more than one lap line, which will always be in synch (i.e.
if one is triggered, all will be set to inactive).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6161 178a84e3-b1eb-0310-8ba1-8eac791a3b58
which can give a false positive on certain platforms due to
floating point errors.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6159 178a84e3-b1eb-0310-8ba1-8eac791a3b58
it more useful (actual angle can be determined in stk_config.xml).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6155 178a84e3-b1eb-0310-8ba1-8eac791a3b58
of slipstream and enough 'slipstream credits' have been accumulated
(which is shown by a little bit of nitro). This should avoid the problem of
crashing into the kart ahead when getting nitro, and also make it less
likely that the AI creates trains.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6153 178a84e3-b1eb-0310-8ba1-8eac791a3b58
jumping (e.g. paper plane in math class).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
resulted in AIs driving badly (even when the variation was set to 0).
This patch will be re-considered later, after the alpha 3 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6129 178a84e3-b1eb-0310-8ba1-8eac791a3b58
steer to the same driveline point, but to points slightly to
the left and right. The maximum variation is defined in
stk_config.xml (and should be between 0 and 1).
ATM THIS IS DISABLED! Since in my tests it appears that
the AI is not driving as good as previously anymore, i.e.
it drives more S-lines on straights etc. To enable this change
steering_variation in stk_config.xml
2) AI now handles multi-items better by waiting a certain amount
of time before using the next item.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6123 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(see bug 3072740): the countdown timer caused incorrect
values to be used for the 'music credit' display.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6121 178a84e3-b1eb-0310-8ba1-8eac791a3b58
It now defaults to 15 degrees (it was 30 degrees, but accidentally
a hard coded value of 15 was committed in r6110).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6119 178a84e3-b1eb-0310-8ba1-8eac791a3b58
race (now there will be at least three karts in a FTL race).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
missed the warning when recompiling). So I've added a "."
at the end.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
line should be continued, so I added a space).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6105 178a84e3-b1eb-0310-8ba1-8eac791a3b58
AIKart (e.g. m_random_kart_list -> m_ai_kart_list) - since this
describes what the lists and function actually are (in network
the name is not entirely correct, but since this will be
re-implemented anyway, we leave the proper naming till later).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6103 178a84e3-b1eb-0310-8ba1-8eac791a3b58