Commit Graph

6975 Commits

Author SHA1 Message Date
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
auria
4530a7e498 Fixed subsea glitch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9946 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 22:45:10 +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
auria
9fce22d85c Change subsea screenshot to correspond to our norms (power-of-two in size, jpeg, no race UI nor karts), and rename 'subsea track' to just 'subsea'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9942 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 19:39:01 +00:00
auria
f9b26e02f0 Add a couple missing files in subsea
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9941 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 19:27:13 +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
mbjornstk
7d7a6d29c0 Remove useless svn:executable property.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9938 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 00:17:35 +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
a37b77543c Added missing screenshot; fixed group from addons to standard.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9936 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-04 22:42:56 +00:00
auria
719d065aed Add subsea
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9934 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-04 22:21:45 +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