Commit Graph

5092 Commits

Author SHA1 Message Date
hikerstk
13a036893e Fixed minor memory leak (QUIT request was not freed).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9978 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 22:39:52 +00:00
hikerstk
c3003a763f Added leak checking.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9977 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 22:38:56 +00:00
hikerstk
941b8aeeba Added a consistency check for addons: if the addons_installed.xml
file is out of synch (due to a bug in 0.7.2 an empty file would be
written if internet is disabled or not working, resulting in
information about installed addons being lost), the installed addons
are now marked as being  installed again (bug #455).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9976 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 21:29:10 +00:00
hikerstk
41b4aa96af Fixed memory leaks for particles.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9975 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 11:20:15 +00:00
hikerstk
80cf7c3468 Fixed compilation error on linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9974 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 11:19:30 +00:00
hikerstk
9767765cb9 Removed exception throwing from MusicInformation constructor, and
use a simple static function to create a MusicInformation object.
This simplifies handling of errors in calling functions, and
appears to have fixed a (minor) memory leak as well.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9973 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 11:15:53 +00:00
hikerstk
a294b36ced Oops - looks like the unused function I deleted was used (and I
am nearly certain it compiled when I tried :(  ).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 09:10:25 +00:00
hikerstk
5caee0a9fc Removed loading of music files from a track directory if the .music
files are not specified in the track.xml file. There is no need to
support this functionality (track directories should only contain
music that is actually used by the track), and it caused duplicated
entries on case-insensitive file systems (e.g. on windows it
resulted in one entry for west.music, and one for West.music).
While the latter had no big disadvantage (it was cleared correctly)
it is unnecessary and might lead to problems later.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9971 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 06:20:29 +00:00
auria
2aa2250d12 Check MusicInfo class for leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9970 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 02:05:32 +00:00
hikerstk
d17741b78b Fixed minor memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9969 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 01:58:34 +00:00
hikerstk
3b63f1c299 Fixed ref counting in irr_driver (file_manager was not released), added
ref counting to file system object in file manager (not strictly necessary,
but cleaner).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9968 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 01:09:23 +00:00
hikerstk
a93d05d046 Fixed unnecessary creation of an irrlicht NULL device (one in file_manager,
one was created just to get the list of modes, before the actual device
is then created). This fixes a minor memory leak (the 2nd NULL device was not
freed), encapsulates all device creation into irr_driver (and not in 
file_manager).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9967 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-12 11:28:35 +00:00
auria
aec6cf2b9a Don't aim at hurt karts either since you can't swat them anyway
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9966 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-11 19:29:43 +00:00
auria
24ed5f15cc Don't swat invincible karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9965 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-11 19:11:39 +00:00
hikerstk
2a227e9d8b Fixed #457: crash after battle mode. Texture ref counting was not done
correctly, resulting in wheel textures to be freed even though the
textures were still used (in the master kart models).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9964 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-10 05:41:55 +00:00
hikerstk
5993f32f30 Allow to move the attached camera to all AI karts in profile mode
(press keys '1' to '9' to move the camera to kart 0 - 8).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-10 04:30:18 +00:00
hikerstk
d44275bb45 Allow the camera to be set to NULL, and minor cosmetic
changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9962 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-10 04:28:20 +00:00
hikerstk
0ff8f8ab8b Made flyable use getXYZ everywhere (instead of the position
from the physical body, so changes to the position were not
picked up as expected).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9961 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-10 04:26:40 +00:00
hikerstk
9d26f87217 Fixed minor memory leak, and added some missing exit statements.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9960 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-10 04:23:14 +00:00
auria
0fa8d27eff Apply updated version of Termina1's patch, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9958 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-08 20:50:07 +00:00
auria
823d7ca94e Apply a slightly modified version of termina1's patch to see GP progress, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9957 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-07 23:25:02 +00:00
hikerstk
941a75410a Removed unnecessary include.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9956 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-07 09:13:44 +00:00
hikerstk
69654d462b Fixed memory leak, simlified code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9955 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-07 09:12:31 +00:00
hikerstk
3491361a26 Enabled the debug keys F? in profile mode as well, allowing
people to give the AI certain items (it also avoids a
crash if one of the F? keys is pressed in profile mode).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-07 09:11:34 +00:00
hikerstk
598ab4b5c1 Bugfix: rubber ball was not deleted when being shot while the firing
kart was first (among the still driving karts).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9953 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-06 23:25:25 +00:00
hikerstk
31924c2efb Fixed memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-06 22:25:21 +00:00
hikerstk
bba09142e8 Fixed memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9951 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-06 22:23:53 +00:00
hikerstk
9abcc41d52 Fixed memory leak each time a track with graphical surface effect
(water) is being used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-06 22:22:29 +00:00
hikerstk
dbae2b0854 Fixed rubber balls sometimes disappearing under the track.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9949 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-06 22:19:44 +00:00
hikerstk
ad73e60d4c Fixed minor memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9948 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-06 06:19:46 +00:00
hikerstk
3c8d1e896a 1) Added a delete timer: if the ball has no target (e.g. fired by
player currently at front) it will disappear after a given
   time (atm 5 seconds).
2) If the ball overtakes the target it will now be deleted.
3) Fixed ball sometimes turning in the wrong direcftion when
   trying to hit a kart.
4) Some refactoring to make functions smaller.
5) Removed left-over debug code. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9945 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 21:27:21 +00:00
auria
b696dfad65 Subsea deserves a better song than BoomBoomBoom, plus add Rudy to the Credits for Subsea track
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9944 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 20:15:46 +00:00
hikerstk
341b87fd3a More cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9940 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 04:15:19 +00:00
hikerstk
9410a9bf30 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9939 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 04:12:00 +00:00
hikerstk
b856a0c514 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9937 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-04 22:52:30 +00:00
hikerstk
f98c315692 Fixed memory leak (my apologies, auria - when I noticed that
you didn't commit this, and I had it basically ready to go,
I just fixed this ;) ).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9932 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-04 10:49:42 +00:00
hikerstk
71fee00dbd Fixed minor memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-03 22:09:33 +00:00
auria
7111b83a63 Add sanity checks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9928 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-03 02:11:47 +00:00
hikerstk
b62b27a4d5 Instead of exit trigger a proper end of STK in profile
mode, which makes this better suited to find memory leaks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9927 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-02 23:11:40 +00:00
hikerstk
8dfa57202b For now avoid the crash in #446 by the ball just immediately being
removed when it is fired, which is unsatisfactory. I leave
#446 open to find a better solution.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-02 20:54:39 +00:00
auria
fa4bbcb3a2 Fixed uninitialized variables
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-30 22:26:00 +00:00
hikerstk
a354f5521d Added support for animated physical objects to trigger a reset
of a kart on collision.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9924 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-30 06:29:00 +00:00
hikerstk
d957436771 Removed unnecessary support for track version 2 (which is
not used anymore) - i.e. support for zipper attributes
(zipper are now a separate node). Cosmetic changes to
fix line lengths.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9923 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-30 04:39:12 +00:00
hikerstk
060c8059be More line length changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9922 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-30 04:37:46 +00:00
hikerstk
1246744be3 Restricted the angle the rubber ball can turn once
it is close to its target. This gives karts a chance
to escape a rubber ball by driving irretically.
Also added some debug output to indicate when the 
ball lost sight of its target (i.e. the ball was
going directly to a target, but then the target 
was suddenly too far away), so perhaps the ball
should be removed then?
ATM the ball will continue, trying again to hit
the leader in the next round.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9921 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-30 03:56:25 +00:00
hikerstk
4ed0e79afe More cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9920 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-30 01:10:23 +00:00
hikerstk
b5c3266d2e Besides some cosmetic changes added & to setSelection parameter.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9919 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-30 01:07:05 +00:00
hikerstk
798576ef12 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9918 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-29 23:03:00 +00:00
hikerstk
313e5ea9e1 Fix #447: crash at race start after changing the resolution.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9917 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-29 23:01:52 +00:00
hikerstk
c242708315 Use reference instead of a copy in getFrameSize.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9913 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-29 05:52:56 +00:00
hikerstk
c7d7ef7263 Only cosmetic changes to follow our style guide (now
all STK source files have less than 170 characters
per line ;)  ).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9912 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-29 05:39:06 +00:00
hikerstk
eb5b5553ea Cosmetic changes only to follow our style guide (esp
line length).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9911 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-28 22:34:35 +00:00
hikerstk
2b805c7d69 Added support for physical objects triggering rescue on collision
(#163). Objects must be declared with 'reset="Y"' in order
to trigger rescue.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9910 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-28 10:52:41 +00:00
hikerstk
3e32b840bf Only cosmetic changes to adjust the files to our coding style.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9909 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-28 05:19:22 +00:00
hikerstk
3777726596 Only cosmetic changes (line length, ...).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9908 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-28 04:54:52 +00:00
auria
3807b30074 Disable post-processing in multiplayer
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9907 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-28 01:54:16 +00:00
auria
8a4bc01416 Fixed #444
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9905 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-27 22:58:11 +00:00
auria
480ab1c436 Make code a bit more robust at detecting problems (not fixed yet though)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9904 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-27 22:53:13 +00:00
hikerstk
29453de9fa Added referee in rescuing a kart. Note that at this
stage thunderbird still has the traffic light attached, and
the position of the bird in relation to the kart is not yet
ideal.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-27 11:46:27 +00:00
hikerstk
8dd1dd5767 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9902 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-27 04:14:26 +00:00
hikerstk
0a043b57b8 Fixed bugs in the computation of the rotation angle for the referee
so that it faces the kart.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9900 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-27 03:03:43 +00:00
hikerstk
d3276d0adf Removed Kart::attach(), Kart::getAttachment()->set
can be used instead.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9899 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-27 01:13:42 +00:00
hikerstk
2e571a1172 Added comments, minor cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9898 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-27 01:12:36 +00:00
hikerstk
2590a8236a Update the kart translation after it was reset at the start of the
race. This way getXYZ() and getTrans() now report the correct 
position after the kart were reset, before the first frame (i.e.
before Moveable::update() is called the first time).
This caused the referee position to be inconsistent between 
tracks (and this will for now cause the referee position to be
bad ... but at least the same bad in all tracks ;) ).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-26 22:11:30 +00:00
hikerstk
f6607dc77c Translate referee mesh so that x/z center of the mesh with the
smallest Y coordinate is at (0,0,0). 
Note that this probably makes the position of the referee more
incorrect atm.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9896 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-26 22:08:10 +00:00
hikerstk
f317625507 Use English names for source and header filters
(they were in German) - thanks to radifar for
noticing this!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9892 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-23 02:46:44 +00:00
hikerstk
fca2810432 Added Radifar's update for VC10 - thanks!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9891 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-23 02:42:13 +00:00
hikerstk
ae9b3b8e0f Added missing <stdio.h>, which is necessary on linux
(and sorted includes a bit).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9890 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-23 00:17:52 +00:00
hikerstk
cc9fce2965 Fixed VS compilation problem ('free' is a macro) by renaming free to deallocate.
Updated VS 9 project file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9889 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-23 00:07:24 +00:00
auria
d8d6865306 Fixed another harmless but annoying leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9888 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 18:46:00 +00:00
auria
60d9638ca4 Fixed another (harmless but annoying for Valgrinders) leaks in theGUI
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9887 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 18:42:21 +00:00
auria
978bb5466b Fixed a couple more leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9886 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 18:24:28 +00:00
auria
07afe4c87b Fix quite a few leaks in the GUI engine, and introduce my quick leak-detection macros in dbeug mode (with Joerg's approval)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9885 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 18:08:04 +00:00
hikerstk
d0a4c086ed Implemented rubber ball avoidance: if the new and previous
position of the rubber ball crosses a line running through
the rear wheels it is removed.
This condition is nearly impossible to fulfill - I only managed
to do this by driving in a tight circle (and then it was like
1 out of 10 balls that I could avoid). Not really useful, I
commit only to see if other people have more luck :)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9884 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 07:24:27 +00:00
hikerstk
02a2642be7 Removed unnecessary static variable, made the target a moveable
instead of kart (which in future would allow us to make the cake
aim e.g. at other flyables).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9883 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 05:46:17 +00:00
hikerstk
18f6f6de17 Removed debug code which should never have been committed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9882 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 05:43:31 +00:00
hikerstk
aff44c77b4 Minor cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9879 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 06:28:35 +00:00
hikerstk
a21c3a2c24 Fixed wrong #include (math.h instead of constants.hpp).
Thanks to khonkhortisan.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9878 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 02:17:15 +00:00
hikerstk
4b3e0c5d9d Simplified attachment_plugins by not needing the
attachment object (which instead is taken from the
kart object). Also m_attachment from AttachmentPlugin
was removed, since this avoids #include kart.hpp
(reducing compile time) - it's not actually
needed (only for the scene node in swatter, which
now is saved separately).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9876 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 01:04:35 +00:00
hikerstk
ef069d50a0 Fix #428: scene node of eliminated kart in battle mode was still
visible.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9875 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 00:55:18 +00:00
hikerstk
ca1093a563 Cosmetic changes only (to follow style guide).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9874 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 00:51:11 +00:00
hikerstk
a615b952c2 Cosmetic changes only (to follow our style guide).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9873 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 00:43:43 +00:00
hikerstk
c7cbec06b8 A kart with a bomb now explodes (#427).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9870 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-20 01:46:11 +00:00
hikerstk
e371a273d6 Cosmetic changes only (style, comments, ...).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9869 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-20 01:44:27 +00:00
auria
b7b1c02bb0 On forum, with minigolf course, it was suggested that it would be cool to be able to use more accurate collision shapes, for instance enabling the windmill to hit the kart. I agree, and bullet can do that, so it's not possible :) but not used anywhere atm
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9867 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 19:53:02 +00:00
auria
c31b9687e7 Enable alpha testing on thunderbird to benefit from the transparency in the texture
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 18:55:23 +00:00
auria
decd66ca84 Make the thunderbird traffic light bright even if facing away from the sun
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 18:52:50 +00:00
auria
5e905e4322 Added support for the gettext context feature
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9862 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 18:07:59 +00:00
auria
cd8162c30f Disabling GFX should not result in ghost track objects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 17:50:20 +00:00
auria
1908a58f95 Apply patch by rjaguar3 to display locale-specific dates
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9858 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 15:43:51 +00:00
hikerstk
45bab1846a Updated VS10 project files (thanks to radifar).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9857 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 14:08:11 +00:00
auria
3029d01014 Fixed a couple minor typos found by marclennart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 00:12:12 +00:00
hikerstk
d3fb50ece4 Fixed compilation error when using AI_DEBUG, thanks to Kinus.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9853 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-16 03:24:08 +00:00
hikerstk
3185c5fcc9 Cleaned up world.hpp:
- sorted declarations so that all virtual functions
  are together.
- Renamed *_IDENT variables to IDENT_* so that the
  naming is consistent
- Using std::string& for IDENT_* instead of char*
- Use pointer for out variables in getDefaultCollectibles.
- Moved m_fastest_lap variable from world to LinearWorld.
- Many many cosmetic changes to follow our style guide.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9852 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-16 01:49:38 +00:00
hikerstk
9f4bce73a3 Added boolean flag to indicate if the referee is a start (true)
or rescue (false) referee - no actual implementation change yet.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9851 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-16 01:44:33 +00:00
hikerstk
6b19b7c49e Fixing #419: on restart of a 3SB tires previously thrown
on the track are now removed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-15 12:46:03 +00:00
hikerstk
9811148d12 Added comments.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9849 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-15 12:44:53 +00:00
hikerstk
eeaf379e6b Minor cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9848 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-15 12:42:23 +00:00
hikerstk
e4b1f6b7d3 Added asserts so that accessing incorrect wheels will get caught early.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9842 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 23:36:03 +00:00
hikerstk
c42ca91dc9 Fixed compiler warning (there is no need for doubled in STK).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9839 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 23:26:30 +00:00
hikerstk
8b85ee1cac Uses arrays instead of m_tire_{1,2,3,4}_{radius,offset} scalar variables.
Fixed incorrect indices used for tires (used 1-4, should use 0-3).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 23:11:12 +00:00
hikerstk
7abdefca39 Made AABB of track higher to allow projectiles to fly
higher than the actual height of the track. This fixes
#412 (cakes immediately exploding in a basically flat
track).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 22:48:57 +00:00
auria
daeefc9f55 Update Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9835 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 20:15:23 +00:00
hikerstk
890ddfa908 Fixed crash when the end controller was used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9834 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 12:40:35 +00:00
hikerstk
481ca5bac8 Bugfix: Referee was not removed from scene.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9833 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 12:36:35 +00:00
hikerstk
ea6640321a Initial rotation of thunderbird now takes heading of
kart into account.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9832 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 12:22:03 +00:00
hikerstk
d5e67579fc Set heading correctly (esp. at startup, i.e. before first update
is called).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9831 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 06:59:16 +00:00
hikerstk
6607e98ff5 Made the bird rotate a bit so that it is facing the kart
(note - that does not solve the bug that if the kart is
not at heading 0 the bird will face the wrong direction).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9830 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 06:35:27 +00:00
hikerstk
82197488b0 Made the model rotation configurable; improved
documentation of referee.xml.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9829 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 06:32:05 +00:00
hikerstk
eaeb958d78 Fixed compilation problem on Linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9823 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 01:02:33 +00:00
hikerstk
f85556d83a Added thunderbird as start referee. Known bugs:
1) Ready, Set, Go is still shown.
2) Orientation of thunderbird is not correct in
   all cases (esp. in battle mode).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 00:48:49 +00:00
hikerstk
d3d0b87d93 Replaced #include with forward reference to reduce dependencies.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 23:43:15 +00:00
hikerstk
124c795120 Cosmetic changes only to follow our coding guidelines.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9820 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 23:42:06 +00:00
hikerstk
bc3c68cdaa Allow to add a NULL animated mesh. This enables the usage of readonly
materials (first add a NULL mesh, then set readonly material, then add
the actual mesh ... Adding the mesh first, then re-adding does not work,
since irrlicht tests if there is really a different mesh).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9819 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 23:40:41 +00:00
hikerstk
c298f6ef85 Applied Khonkhortisan's patch for #423: use the actual kart wheel models
when losing the final tires.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 02:51:33 +00:00
auria
222a7c2372 Hopefully Joerg won't mind ;) salvaging Adiumy by improving physics for tall karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 00:03:42 +00:00
auria
f5b627bccd Fixed crash in battle mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 23:39:59 +00:00
auria
9878f12039 Improve and simplify improved rescue code; also remove the CHEATER message I tried to add because it had some glitches
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:57:14 +00:00
auria
1f19560a29 More tweaks to improved rescue, plus as a bonus use the additional info we now have to let users know when they missed a checkline
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:28:46 +00:00
auria
d8a5d710e9 Fixed minor issue in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9808 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:07:41 +00:00
auria
2311b11b90 Added new smart rescue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 23:59:49 +00:00
auria
ee7b178dce Started adding code to assign a checkline to each quad (currently disabled). See #398
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 19:46:51 +00:00
auria
727f84d7f8 Fixed water creating visible polygons, thanks to Hybrid for the weld tip. Jperg, maybe you can check my memory management makes sense (I think I'm getting the hang of it but I'm still not sure I know what I'm doing)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 15:46:47 +00:00
auria
f099a6f4c0 When swatting a kart with a bomb, both karts explode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9796 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-10 23:47:04 +00:00
auria
0fcdada738 Removed some logging
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9794 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-10 23:23:08 +00:00
auria
6698949799 Add get-rid-of-bomb animation for swatter
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9793 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-10 23:20:57 +00:00
auria
58c634e1f4 Apply patch by khonkhortisan to lose 4 tires in 3 strikes mode, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9792 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-10 21:47:23 +00:00
auria
aa034e2a97 Set fog on textures that don't appear in materials.xml too
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9791 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-10 19:33:41 +00:00
auria
1b28c99ceb Minor tweak to prevent some rescues in fly mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9790 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-10 19:33:09 +00:00
auria
43dcef7968 Fixed bug with particles being emitted at (0,0,0)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9789 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-10 18:25:21 +00:00
auria
cd859dcaa5 Fix silly GCC warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9787 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-09 00:40:08 +00:00
hikerstk
a06e4a3ba8 Improved documentation, fix bug that rubber ball would not
handle losing its target correctly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9786 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-09 00:27:44 +00:00
auria
7b0be185d4 Properly clear nitro on restart, plus fix some silly code where sometimes we carefully check if (m_nitro) before using the pointer, and at other times we use the pointer without checking
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9785 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-08 01:31:30 +00:00
auria
11c698e29d Fixed the timer remaining stopped when exiting race from pause dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9784 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-08 01:27:04 +00:00
hikerstk
b8f84d5d75 Removed warning in case that a partially downloaded file (*.part)
is found in tmp when exiting stk.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9783 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-08 00:18:23 +00:00
auria
a3eb3e293a Slightly tweak location of spare tires in 3 strikes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9782 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 23:50:25 +00:00
auria
b46b8cfaa6 Perform some validations when clicking on list item in addons screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9781 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 23:39:59 +00:00
hikerstk
1eaf8b436d 1) Fixed #407: crash/memory leak in battle mode.
Just dropping the last reference to the mesh
   does not remove the pointer to this mesh from
   the mesh cache --> in the next race when the
   tire model is loaded again the mesh cache tries
   to load a freed mesh.
2) Fixed floating tires: TrackObjectManager::removeObject 
   does not remove the scene graph or physics world.
   Just leaving them in the objects managed by
   TrackObjectManager frees them as expected
   (side note: I am considering refactorin removeObject ;) ).
3) Improved documentation on ThreeStrikesBattle.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 21:45:21 +00:00
auria
4f3cbae063 Improve reload feature in addons (see #415)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9779 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 19:18:45 +00:00
auria
53b5758eee Actually update the addons list on reload
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9778 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 19:05:00 +00:00
hikerstk
1d2a0f4b89 More fixes in case that we have a kart without wheels.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9777 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 00:56:14 +00:00
auria
4782c7ae39 Improve handling on long strings in tabs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9775 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 15:54:30 +00:00
hikerstk
2143c7ee3a (Hopefully) fixed crash on OSX if gnu kart is used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9774 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 12:45:43 +00:00
hikerstk
5f615c61e6 Added information about which successor of a graph node to
use in order to reach a certain target graph node.
This is now used by the rubber ball to follow karts even
if they are on an alternatice way/shortcut.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 06:56:00 +00:00
hikerstk
d4317a0839 Updated autotools building, including distributing of the directories
tools; data/shaders; data/tutorials; and other missing files.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9772 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 06:09:27 +00:00
hikerstk
fbc2b35c7f Fixed #409: missing files for Xcode built. Also adding codeblocks
files (not sure if they are up to date).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9769 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 06:03:24 +00:00
hikerstk
25c74e3b3e Added missing files (which went unnoticed since the files
were not compiled under linux).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9768 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 05:18:35 +00:00
hikerstk
eb12aedbbf Fixed compilation problem if this file is compiled.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 05:17:21 +00:00
hikerstk
8efe390c08 Made rubber ball debug output also available in non-debug
compilation.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9766 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 02:54:15 +00:00
auria
c4fc2a2bf7 Fixed issue of 3-strikes lives not being visible with the minimal race UI by somewhat de-minimizing it a bit in 3 strikes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9764 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 23:49:17 +00:00
auria
2d6cb641c5 In 3 strikes you now have only 2 spare tires, to be more logical. And when you lose you actually lose your wheels.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9763 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 23:21:21 +00:00
hikerstk
13de49b5ee 1) Improved rubber ball handling, which should work better in tunnels
and inclines now.
2) Added --debug=flyable debug option to use print plenty of debug output
   for rubber balls (needs to be compiled with -DDEBUG to work).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9762 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 23:20:23 +00:00
auria
78eac6b7ce Add gloal profiler marker, will help get percentages
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 22:55:55 +00:00
auria
29e09f5231 Fixed the fog=N flag in materials.xml
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9757 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 20:11:32 +00:00
auria
d2e5914c84 Minor improvements to some logging (most importantly, missing \n at the end)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 19:08:15 +00:00
auria
aa3ac2849a Improve some logging
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 19:03:35 +00:00
hikerstk
c7c9f8150a Simplified vo_ngan_90's patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9752 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 04:14:50 +00:00
hikerstk
4606f1b192 Improved documentation, removed mixed-case variable name.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9751 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 04:04:42 +00:00
hikerstk
d9d0926f10 Print a line to stdout if gamepad-debug is enabled after each frame
(which makes it easier to see which events are handled in the same frame).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9750 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 04:03:49 +00:00
hikerstk
888c4a529b Minor code cleanup.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 01:06:49 +00:00
auria
6e98f90a48 Apply patch by vo_ngan_90 to pause particles and waves when paused, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 23:44:27 +00:00
auria
2b2c07d81e React better when missing start positoons on arenas
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9745 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 23:37:58 +00:00
auria
026e7e67ce Add sanity checks to getStartTransform to avoid going out of array bounds
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9744 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 23:33:14 +00:00
auria
256f611bbd Fixed resetAxisDirection resetting buttons that happened to have the same ID as the axis being resetted
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9743 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 23:01:59 +00:00
auria
1771ec44fb Improve lightmap visualisation mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 20:04:15 +00:00
auria
42e4c34aac Add lightmap debug view
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9737 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 19:17:32 +00:00
auria
c457505f9f More work to make STK aware of lightmaps
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 18:22:23 +00:00
auria
950ff58217 Make STK ready to handle lightmaps when creating physics
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 17:50:46 +00:00
auria
123f51cafb Remove some unecessary logging
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9734 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 15:32:01 +00:00
auria
68b56d0c05 Remove unused parameter for race GUI message, plus use title font for the WRONG WAY message instead of this ugly pink font that was there before
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 20:23:55 +00:00
auria
3998dd0572 Fixed silly GCC warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9725 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 18:28:38 +00:00
auria
38db8a9fbf Play ugh sound when hitting bubblegum
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9721 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 18:13:38 +00:00
auria
2903c4435e Make bubblegum have much cooler (and nastier) effect
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9719 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 18:07:18 +00:00
auria
cb47023202 Added limited form of LOD on particle emitters
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9718 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 01:58:39 +00:00
auria
7ab0e019af Add-ons are now reloaded in the background
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9716 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 00:28:29 +00:00
hikerstk
fca446b974 Fixed #399: explode was called by cake and bowling,
even if the kart was immune. Now Flyable::hit()
returns true/false if the hit was a real hit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9712 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-02 01:36:23 +00:00
hikerstk
4b2929097d Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9711 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-02 01:34:55 +00:00
hikerstk
cb08a03d7d Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9710 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-02 01:34:08 +00:00
hikerstk
d9f0b49e3b Missing file in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9709 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-02 01:22:18 +00:00
hikerstk
397632c62e Made maximum height of ball dependent on terrain (e.g.
balls won't fly too high in tunnels). This is only 
partly working atm.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9708 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-02 01:05:19 +00:00
auria
7395d5307b Improved handling of long add-on names
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9707 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-02 00:31:22 +00:00
auria
79f5f69b9e Change order in which tires are lost
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9706 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:59:05 +00:00
auria
a87d0c5f2b Fixed 3-strikes wheels not reappearing when restarting race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9705 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:56:22 +00:00
auria
03178d9e75 Kinda fixed crash I introduced in 3 strikes, but the current code leaks. Will need to ask Joerg how irrlicht memory management works...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:47:15 +00:00
auria
3e7aeaf71f HAving some fun : you will now physically lose a tire in 3-strikes mode. Watch out for tires all over the place as the battle gets fierce ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 20:09:26 +00:00
auria
dd24f83d02 removed bad/outdated flags from Xcode proejct
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9701 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 14:56:17 +00:00
hikerstk
8051363917 Updated VS10 project files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9700 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 12:59:21 +00:00
hikerstk
1767920dba Replaced the request vector with a priority queue from STL
(which means more efficient insert/delete; less code in STK).
Thanks to Auria for mentioning this.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 10:17:06 +00:00
red-skull
7ca6bc4756 fix bug #397
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9698 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 02:13:30 +00:00
hikerstk
5f04084976 Fixed bugs in request sorting (HC_QUIT request with highest
priority did not get sorted to be the next request to be
executed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 01:58:27 +00:00
hikerstk
2ea50e99fd Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 00:59:41 +00:00
hikerstk
85d21b2ea8 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 00:58:39 +00:00
red-skull
a6dda46ad3 fix bugs added in r9532, constructor delegation doesn't work in C++
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9692 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 00:41:45 +00:00
auria
74956e454f Introduce new LOD
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-30 19:10:17 +00:00
red-skull
a3b572cf0a fix #400, live language switch doesn't work for system language
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-30 00:02:59 +00:00
red-skull
c4a24ad6b6 mark conflicts between configuration in blue for #39 (commit with Auria's blessing)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9656 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-29 02:21:50 +00:00
auria
c4d06b5c1e Allow accessing 3-stirkes in single-player mode if artist-debug-mode is enabled, that's easier to debug tracks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9655 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-29 01:32:05 +00:00
auria
3ee1e92b23 Improve anti-aliasing : remove my attempts at configuring it and just use the defaults, it's much nicer-looking this way ^^
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9653 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-29 01:05:02 +00:00
auria
b0ec889105 Add highly visible note so that I don't ever again do the same mistake that I fix in previous commit but really puzzled me for a while :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9652 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-29 00:55:47 +00:00
auria
861715c0a6 Fixed some material flags not being set on textures that don't appear in materials.xml
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9651 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-29 00:52:06 +00:00