Commit Graph

7004 Commits

Author SHA1 Message Date
hikerstk
aa74b59dcb Added separate fast-ping distance, so that the rubber ball
can start boucing lower/faster earlier, increasing the chances
to hit the target when target-distance is set to a small value.
Target-distance was set to 25 to decrease the chances of the
ball going through e.g. tunnel walls.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10004 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 21:18:45 +00:00
hikerstk
fbbb67d832 Removed unused variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10003 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 20:54:49 +00:00
auria
ed624633aa Fixed leaks associated with changing language
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10002 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 16:00:10 +00:00
auria
7e4ff8e0b5 Support more shapes for animations
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10001 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 15:31:05 +00:00
hikerstk
4026172cf6 Fixed another memory leak: stopping STK while icons are still downloading in the
background.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10000 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 13:06:40 +00:00
hikerstk
879cbf99b1 Fixed another memory leak if a download request is aborted.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9999 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 12:54:27 +00:00
hikerstk
ff19724991 Fixed memory leak when addon is installed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9998 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 12:43:23 +00:00
hikerstk
23af52985f Removed unnecessary parameters kart and track from
TrackSector::update.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 12:29:37 +00:00
hikerstk
830e88d1e5 Added maximum height difference to detect if a target is
close enough for a rubber ball. This avoids a problem is 
the target is actually close on a different part of the
track.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9996 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 12:17:56 +00:00
hikerstk
d9ada38dcf Removed unused code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9995 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 11:36:41 +00:00
auria
b5669e151c Fixed what happens when starting from terminal and the akrt 'random' is selected in the suer config
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9994 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 00:18:13 +00:00
auria
e3015e2931 Update pot
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9993 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 00:14:37 +00:00
auria
f4ae4e5f19 Fix track name in challenge description
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9992 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 00:13:29 +00:00
auria
f56e8d85ec Fix for good CGUIEditBox leak
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9991 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 00:07:28 +00:00
auria
a8dfd29f65 improve a lot leaks of CGUIEditBox objects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9990 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 00:00:57 +00:00
auria
3707765721 Prevent deleting players while in-game, if you delete yourself while you're playing I have no idea whatwill happen... thanks kroArtem for noticing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9989 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-15 23:57:46 +00:00
auria
3655424189 Removed old code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9988 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-15 23:47:22 +00:00
auria
5ac65a28d8 Silence silly warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9987 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-15 23:46:43 +00:00
auria
62ed88eb34 Fixed CGUIEditBox memory leaks and fix crash when deleting player
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9986 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-15 23:40:50 +00:00
auria
c46b1de3ea Enable word-wrap in new player dialog to avoid overlapping text in French and probably other languages
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9985 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-15 23:34:02 +00:00
auria
d83a65a5a6 Forbig changing language when in-game as this crashes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9984 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-15 23:30:21 +00:00
hikerstk
957c03839a Improved debug output slightly, handle case
of m_delete_timer==dt (--> becomes zero) correctly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9983 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-14 05:41:14 +00:00
hikerstk
ba6094d256 Fix crash when installing a new kart (#459).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9982 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-14 05:35:37 +00:00
hikerstk
95a42cbb9d Fixed compilation error on linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9981 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 22:55:53 +00:00
hikerstk
f6453f2557 Added comment about memory leak reported by valgrind.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9980 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 22:41:25 +00:00
hikerstk
76df1fa694 Added leak checking.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9979 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 22:40:35 +00:00
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