Commit Graph

7713 Commits

Author SHA1 Message Date
wardje
cb890d4f32 Add reverse track functionality for GPs.
Fixes part of #503 (and #599 completely).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11019 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 22:15:20 +00:00
wardje
a5028ddd4f Fix some doxygen comments while about everything has to be rebuilt anyway.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11018 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 16:41:21 +00:00
wardje
a40462594c GP start order option to user's config + add option to have players always last
In light of #28, the GP start order option is probably more at home in a user's
configuration. While at it, also add an option to keep the player always last.
This is more of a challenge for the player than just reverse mode since your
direct opponents _will_ be at the forefront while you have to play catch up.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11017 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 16:39:32 +00:00
wardje
36cd82b0eb Fix a GP starting order bug I noticed when time was involved.
Did a GP where points didn't matter (only time) and noticed the
sorting didn't work correctly at the start of a race. Expanded
the operator< to account for time when points are equal.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11016 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 16:21:14 +00:00
auria
cb2cd9505b Apply changes to Fort Magma to make it friendlier to drive in reverse
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11014 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-24 01:34:07 +00:00
wardje
b85a324793 Fix #597.
Also change the #define in kart_animation.hpp's header in accordance
with coding style and the name change in r11012.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11013 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-23 16:28:00 +00:00
hikerstk
545e8a4892 Renamed EmergencyAnimation to KartAnimation, in order
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
2012-03-23 05:28:18 +00:00
hikerstk
53b4b7d47c 1) Fixed auto-rescue of AI kart if they are stuck.
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
2012-03-22 23:52:06 +00:00
wardje
d77fc80e09 Fix #531 (random race in 3 strikes battle).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11010 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-22 16:49:49 +00:00
hikerstk
c078df7e18 Fixed crash by double-freeing a (shared) pointer.
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
2012-03-22 00:20:19 +00:00
auria
8a0e792d53 Apply fixes by ctdabomb to jungle so that it works fine in reverse mode. Which way to take could be clearer but at least AIs don't drive into a wall now
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11007 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-21 23:16:02 +00:00
hikerstk
acba9e523a Updated documentation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11006 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-21 23:06:45 +00:00
wardje
793c937859 Some tweaking for #506 (Not enough icons show in ingame ranking)
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
2012-03-21 21:03:51 +00:00
hikerstk
d7071bfab2 Improved AI's handling of push back that now happens after
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
2012-03-21 21:01:11 +00:00
auria
474856dbed Fix another warning when building with mingw
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11003 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-20 01:53:04 +00:00
auria
8dcc237c28 Fix tons of warnings when building with Mingw. Yes I know I did a few changes in bullet. I don't care, the warnings were too annoying
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11002 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-20 01:51:28 +00:00
auria
8308a571ef Remove property to get native line endings on update_file_list.sh. This script only works on Unix so there's no reason it should ever have windows line endings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11001 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 23:14:47 +00:00
auria
518a263588 Update cmake source list, Bad bad Joerg
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11000 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 23:13:20 +00:00
mbjornstk
4b9476ab1f Add new abstract_kart.[ch]pp to build system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10999 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 23:06:31 +00:00
hikerstk
872978ef2c Added files missing in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10998 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 22:59:00 +00:00
hikerstk
ebbc1a71d8 Introduced an 'abstract kart' class, which is used to
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
2012-03-19 20:21:11 +00:00
wardje
48cc8d6044 Correction in highscore showing on Follow The Leader
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
2012-03-18 18:38:28 +00:00
auria
17fe035253 Update overworld, exported with latest exporter which mains mainly that it no more appears in the track menu.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10992 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-18 00:03:25 +00:00
auria
f08f3b76fd Apply patch by Wardje to hide the reverse checkbox for battle mode, thanks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10990 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-17 20:31:55 +00:00
auria
40efd3fbfc Apply patch by Wardje to skip the ready-start-go pahse for voerworld, thanks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10989 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-17 18:43:11 +00:00
auria
fc1150d18b Update to mansion
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10988 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-17 18:23:43 +00:00
undef-in-ed
5b6f7d7c31 CMake: finer control of install destinations
https://sourceforge.net/apps/trac/supertuxkart/ticket/271

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10982 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-16 23:15:23 +00:00
hikerstk
1b53fc70ab Bugfix: the new skidding still applied a slowdown.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10981 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 23:28:01 +00:00
undef-in-ed
fb7c95dd66 CMake: fix problem occurring with Wardje's setup
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
2012-03-15 20:27:44 +00:00
undef-in-ed
d606e7eab9 CMake: integrate (optional) "dependencies" directory
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10978 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 12:51:08 +00:00
undef-in-ed
3234653cea CMake: linking of pthread
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10977 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 12:50:51 +00:00
undef-in-ed
70bb244bbb CMake: fix whitespace errors
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10976 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 12:50:36 +00:00
undef-in-ed
1e0625d4ab CMake: refactor FindIrrlicht a little bit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10975 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 12:50:15 +00:00
undef-in-ed
9c1d373c4b CMake: workaround for Xxf86vm when building on X11 platforms
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10974 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 12:49:44 +00:00
undef-in-ed
6e148e2aaf CMake: mimic folder hierarchy with source_group for MSVC
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10973 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 12:41:52 +00:00
hikerstk
8108045c03 Adjusted debug camera somewhat to get a closer view
of the kart.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 05:56:23 +00:00
hikerstk
b9f6b6f0d5 Fixed debug output (trying to print a std::vector ;) ), removed compiler
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
2012-03-15 01:21:35 +00:00
auria
8f2ee68b16 App,y patch by Wardje to fix small errors on the main menu, thanks!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10970 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-14 23:30:47 +00:00
hikerstk
9377234935 Improved ghost format to support events (like start/end
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
2012-03-14 23:15:31 +00:00
hikerstk
83fc0b2644 Improved steering after releasing the skid button.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10968 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-14 23:10:16 +00:00
hikerstk
bbb0954ae8 Applied Wardje's patch to have separate high scores for reverse mode.
Thanks a lot!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10967 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-14 22:37:56 +00:00
magned
6783ab7d6f Changed fabsf(steering)<0.3f to 0.9 in order to make it skid the other way even if steering is still at 90% to the other direction. It's complicated to explain.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10966 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-13 22:53:21 +00:00
hikerstk
330c269f42 Added a little jump (duration set in config file) when
starting to skid.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10965 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-13 22:34:50 +00:00
hikerstk
4e02fe9d6c Removed commented out code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10964 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-13 22:33:43 +00:00
hikerstk
288f43d481 Made the bonus speed given for a skidding boost configurable (the values
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
2012-03-13 20:51:50 +00:00
auria
bdac17c748 CMake can now also generate cygwin makefiles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10962 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-12 00:48:52 +00:00
mbjornstk
74da40989e Remove pixels from edge of image, they weren't fully transparent.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10960 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-11 00:24:29 +00:00
auria
f639458f26 CMake can now generate visual c++ projects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10959 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-10 23:16:57 +00:00
hikerstk
9d4bdd32a2 Updated VS 10 project files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10958 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-10 12:40:28 +00:00
hikerstk
73176a8d28 Made skidding more controllable: now once the kart
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
2012-03-08 23:30:26 +00:00