Commit Graph

5412 Commits

Author SHA1 Message Date
mbjornstk
8a266dc6b2 Add new overworld mode file to build system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10452 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-19 23:29:02 +00:00
hikerstk
c3586684d3 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10451 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-19 22:02:48 +00:00
stephenjust
33e93f050b Update VC9 project file to add modes/overworld.[ch]pp
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10450 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-19 21:45:34 +00:00
auria
92b077a250 Create new world type for overworld for customized behavior. Hide overworld in track seelciton screen. Launch overworld when clicking on story mode button.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-19 02:26:07 +00:00
hikerstk
c3a057f206 Added options to apply an impulse for a certain amount of time. This
way pushing two karts away from each other is less abrupt. This is
now enabled, feedback (or tweaks) welcome.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10439 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-18 20:55:27 +00:00
auria
683b0e1903 Improve Lambert shading in splatting : actually use the sun direction
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10438 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-18 02:39:05 +00:00
auria
1ce4443ed8 Add lambert lighting to the splatting shader to make it look less flat
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-18 00:48:35 +00:00
auria
184da58d31 Use blender's new support for unicode to properly write Samuncle's name
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-15 19:28:23 +00:00
hikerstk
2920a5a126 Some code cleanup. Removed tabs, fixed layout. Removed
unnecessary code, change some defaults to reduce number
of calls from STK.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10423 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-15 06:16:33 +00:00
hikerstk
d06acf1f7b 1) Added an (additional) impulse to push karts away from each other.
This impulse does not cause any rotation of the kart, it just pushes
the kart orthogonal to its velocity.
2) The rotational velocity is set to 0 in case of a collision, hopefully
avoiding the problem that karts will rotate as result of a collision.
3) A collision pair now stores the exact collision point for both bodies
(which is then used to determine the side in which the impulse to be
applied).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-14 21:02:15 +00:00
auria
938826f129 As was discussed, remove top bar, move icons to the bottom
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10415 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 23:58:04 +00:00
auria
1b57f7430f Move player selection to the options as was discussed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10414 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 23:23:50 +00:00
hikerstk
43c63910a9 Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10412 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 22:52:04 +00:00
hikerstk
a69e94767e Made the restitution settable for karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10409 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 10:40:09 +00:00
hikerstk
dde603030c Missing file in previous commit (unused network code, but
it wouldn't compile without this).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10408 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 05:43:57 +00:00
hikerstk
8ab469d4d8 1) Added an additional impulse to push karts away in case of a collision (unused atm)
2) Saved one collision point for each collision pair so that a frontal detection
   can be detected (atm unused).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10407 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 05:42:40 +00:00
hikerstk
f33cdb2d17 Final fix for #528 (see also r10404): don't test
for locked karts when using --ai.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10405 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 03:49:33 +00:00
auria
ed432fbdf4 Disable checking if kart/track is locked when launching from terminal, avoids crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10404 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 01:03:44 +00:00
auria
66c41037ed Cleanup loading animated LOD nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10399 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-10 21:49:24 +00:00
auria
27cfa16820 Don't use in-game keys for menus, some people may setup their gamepad to use a key that's pressed by default for acceleration
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-10 20:06:43 +00:00
auria
b0270f69d6 Show in the options when many similar gamepads are connected
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10394 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-10 19:47:59 +00:00
coug36
2a87040138 Added missing files to VC10 project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10390 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-10 10:25:41 +00:00
auria
8b65c3d084 Fix crash when starting from terminal with option -N
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10388 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-10 02:44:35 +00:00
auria
3aa77cccfa Don't allow a player to delete themselves
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10386 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-09 01:12:30 +00:00
auria
479b1249ff Highlight menu buttons even when using keyboard and not mouse. Sorry for the ugly code, gotta deal with irrlicht's skin
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10383 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-08 21:50:33 +00:00
auria
25f2700794 Improve main menu based on feedback received
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-08 17:54:58 +00:00
auria
8e6657378b Allow longer player names to be visible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10379 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-08 01:54:49 +00:00
auria
eccc1a66b4 Fixed bug when selecting player profile, don't rely on numerical IDs, they may not match because the guest profile is skipped
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10378 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-08 01:25:56 +00:00
auria
b338e1f0d6 Allow selecting who you are
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10377 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-08 01:02:47 +00:00
auria
de20a89c17 Horrible work around small glitch I'm too lazy to fix right now...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-08 00:44:30 +00:00
auria
cd5e26c223 Show name of current player
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10373 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-08 00:34:48 +00:00
auria
8b50b30ecc New main menu, more minimalistic, based on mockup by samuncle. Please comment
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-08 00:25:23 +00:00
auria
9f727200c3 Add remember me checekbox on the initial screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-07 20:34:28 +00:00
auria
3e431d6895 Don't register a keypress when a gamepad button is released in the menus
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-07 17:06:32 +00:00
auria
61070ece57 Select the appropriate identity when starting a new race from what was selected on the welcome screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10365 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:55:18 +00:00
auria
52e735e2ab Implement the 'new player' player on the welcome screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10364 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:48:48 +00:00
auria
92eb0ebd2a Ran a small bash script to remove all of those annoying strings. The only thing they gave us were the need to rebuild after committing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:43:36 +00:00
auria
a87d34aa7d More refactor in player code to reduce coupling
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10362 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:27:32 +00:00
hikerstk
964d132364 Added code for skidding (currently disabled, so no visible change).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 05:54:16 +00:00
hikerstk
1d15cb7ba0 Update VS 9 project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10360 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 05:52:29 +00:00
auria
8845aa30a1 Start refactoring player handling code and add some missing checks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10359 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 02:28:53 +00:00
auria
a0c3e043cf Select a player name by default
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10358 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 02:11:02 +00:00
auria
bd36a57164 Add initial seelct identity screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10357 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 02:06:48 +00:00
auria
b384f71c7e Fixed bug when loading challenges.xml
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10356 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 01:16:16 +00:00
mbjornstk
f3c9338908 Add the game slot files to build system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10355 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 01:01:17 +00:00
auria
e61c4430b3 Fix some breakage in challenges
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10354 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 00:01:48 +00:00
auria
57d85f1bf1 Remove accidentally committed logging
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10353 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 23:58:49 +00:00
hikerstk
2a9e76d644 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10352 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 22:27:03 +00:00
hikerstk
dd505e00b0 Fix for cmake: Added test for __socklen_t_defined which is used on linux (autotools
would define HAS_SOCKLEN_t, cmake doesn't).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10351 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 22:15:24 +00:00
hikerstk
97943c7fb3 Updated VS 9 project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10350 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 22:10:17 +00:00
auria
0455efd20d Massive refactor in challenge code to allow having more than 1 progression
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 22:00:42 +00:00
mbjornstk
b5fef48c61 Add 4 new files for story mode to build system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10348 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 00:57:53 +00:00
auria
d0a7af3761 Start adding first screens of story mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10347 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 23:06:53 +00:00
auria
d01a45c35e Fix compilation under some OSX systems
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10346 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 23:05:14 +00:00
hikerstk
c201876e2c Removed unnecessary getMass function.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10344 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 21:24:07 +00:00
hikerstk
46d4fe197c Fixed history loading of steering and accelerartion for
physics replay if more than one kart is used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10343 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 20:45:55 +00:00
auria
d02b6d1bfb For now use 4x anti-aliasing by default, it's quite a bit faster than x8 and I can barely tell the difference
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10340 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 19:55:37 +00:00
auria
7436edaf41 Add alpha-to-coverage support
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10338 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 19:47:10 +00:00
termina1
1d6953bcb3 Fix for ticket 450: use a largest accumulated distance to separate kart respawns in 3sb
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10335 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 15:10:59 +00:00
termina1
852420306e Updated vc10 project file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10334 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 14:21:10 +00:00
hikerstk
66109d56f7 Updated VS9 project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10332 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 11:06:07 +00:00
mbjornstk
c85ec85136 Add include for std::sort, it needs algorithm.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10329 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 02:13:30 +00:00
mbjornstk
3e82bd7eec Add include for string.
The .cpp complains about sort... still looking for a fix for that.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10328 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 02:09:51 +00:00
mbjornstk
726492135d Add new "lod node loader" files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10327 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 02:05:04 +00:00
auria
fed42fc062 Fix issue in new lod code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10326 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 01:37:21 +00:00
auria
cccdbb14f7 Remove accidentally committed code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 01:32:17 +00:00
auria
acec3729cd Complete animating LOD objects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10323 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 01:29:27 +00:00
auria
6e152a22aa Animating LOD objects with IPO is now almost closer to work
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10322 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 01:25:09 +00:00
auria
3c4c88e57f Refactor LOD loading to make it easier to make animated LOD objects next
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 00:51:20 +00:00
auria
ddf544ab44 Fixed blunder in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10318 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-03 23:38:24 +00:00
auria
61e226b5a0 Committing an experiment that looks promosing : made STK load much faster by zipping the models of karts. Joerg, unfortunately I had to add a grab() for a reason I currently don't understand :(
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10317 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-03 23:25:51 +00:00
auria
55df795334 Avoid referencing a null pointer when kart loading failed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10316 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-03 23:19:49 +00:00
auria
828705bca6 Fixed issue where particles needed to be manually added at the evry top of materials.xml
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-03 22:06:23 +00:00
auria
3e440fd88d Improve how normal maps work on movimng objects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10312 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-03 20:09:08 +00:00
auria
d4a57fc833 Try to prevent configuring a gamepad by pressing on the wrong gamepad
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10307 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-03 02:43:03 +00:00
hikerstk
05fb68a706 Added debug output when a kart hits the track (for people
playing without sound ;) ). Needs --physics-debug command
line flag.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10300 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-02 09:41:00 +00:00
hikerstk
a5b3cb7f51 Removed outdated FIXME.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10299 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-02 08:57:41 +00:00
hikerstk
422788bc20 Added setting for maximum suspension force (currently set at the
old default value).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10296 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-01 12:14:20 +00:00
hikerstk
bb6e9f6f2c Replaced tabs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10295 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-01 11:33:37 +00:00
hikerstk
52fca10f14 Tried to fix linking problems by moving some code into
class functions.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10293 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-01 02:41:18 +00:00
hikerstk
2c33ed75ed Merged the physics branch back to trunk. There should be no change at
this stage for users.
The physics branch added a few new stability options (which are disabled
by default), fixed bug and reproducing history files when using physics
replay, using --log=file command line option. See log on the physics
branch for full details.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-01 01:14:10 +00:00
hikerstk
6dca16c420 Fixed uninitialised variable (which was used, but didn't impact
the result much).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10291 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 23:48:28 +00:00
hikerstk
3f0e2a7f82 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10290 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 23:46:04 +00:00
hikerstk
357297dc38 Very minor bugfix: if a kart got no startup boost, it would
nevertheless set a startup boost of 0 in bullet, which causes
the first frame not to have correct physics applied (not noticable
in game actually).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10289 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 23:44:04 +00:00
hikerstk
4dbdc5c588 (Re-)Added support for disablind sliding and zipper (based
on implementation in trunk). Now the physics branch (with
disabled new features) behaves like current trunk.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10287 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 23:33:00 +00:00
auria
8799b3ca3b Improve splatting
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10283 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 19:34:37 +00:00
auria
47d0e01f12 Add initial splatting support
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10282 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 16:56:04 +00:00
hikerstk
31aed84b82 Disabled a bug fix from bullet 2.79 if backwards compatibility (to stk 0.7.3)
is used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10281 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 11:36:38 +00:00
hikerstk
d7d8d4aa6c Applied missing patch from trunk that applies the force only sideways.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10280 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 11:33:27 +00:00
hikerstk
d4564dd40d Re-introduced a fix for (apparently) hexley, not sure if this should
be kept, but for backwards compatibility added it back with an
#ifdef.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10278 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-30 08:26:59 +00:00
auria
83527e9146 Apply patch by Wardje to fix displaying GP progress when there are too many tracks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-29 18:24:04 +00:00
auria
b0b1a7c7a1 Prepare STK to accept additive lightmaps
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10273 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-29 02:48:37 +00:00
hikerstk
eb49ef5f87 Updated VS 9 project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10271 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-28 05:15:34 +00:00
auria
7697988801 Add feature requested by samuncle
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10268 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-27 23:41:38 +00:00
auria
407c5319b5 More work to fix building without OpenAL for Android
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10267 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-27 18:15:12 +00:00
auria
bf02f9b788 Fix potential crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-27 02:40:46 +00:00
auria
9afdcfaf50 Apply patch that is a bit similar to what xapantu did, but in a IMHO more modular way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10264 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-27 01:14:16 +00:00
auria
c50e1a6c8b Apply patch that is a bit similar to what xapantu did, but in a IMHO more modular way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10263 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-27 00:48:02 +00:00
auria
c65762cd77 Fixed bug in my previous commit, sorry
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10262 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-26 21:55:31 +00:00
auria
1e63021889 Add support for additive lightmaps
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10260 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-26 20:18:42 +00:00
hikerstk
8890925470 Adding braking improvement back in.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-24 10:29:14 +00:00
hikerstk
dccbfaa5f2 Re-added support for track connection acceleration (for backward
compatibility).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10252 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-24 10:26:27 +00:00
hikerstk
78505d2a8b Added lost improvement: make sure that both wheels
of an axis are touching the ground if at least
one wheel touches it (if only one wheel touches
the ground, the kart will get a strong angular
impulse and turn rapidly).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10251 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-24 10:20:12 +00:00
hikerstk
fd1871be6e Bugfix: adding the radius to the raycast length was lost in
the branch.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10250 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-24 10:13:37 +00:00
hikerstk
0c5125522d Fixed --log=file/terminal (the stdout/err files were opened
before the command line flag was tested, so the behaviour 
depended on the setting in the previous runs, which were
saved).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10249 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-24 09:49:30 +00:00
hikerstk
e92827f357 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10248 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-24 00:22:39 +00:00
hikerstk
06a96ed356 Accept heading angle in degree instead of radians, which is easier
(considering that the special start-tag is mostly used when manually debugging).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10247 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-23 20:52:43 +00:00
hikerstk
f0bf730a9d Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10242 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-22 23:16:19 +00:00
hikerstk
5a4cc87738 Make the physics branch compile with current irrlicht svn.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10241 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-22 23:15:27 +00:00
hikerstk
afb9e12ce5 Bugfix for the bugfix r10235 for #504 (stk would crash when the kart selection menu is
shown next time after a race).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10238 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-22 05:24:39 +00:00
hikerstk
097427e561 Try to fix #504: the wheel model was not freed, resulting in using
textures which were not reloaded (since the mesh was taken from the mesh
cache).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10235 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-22 00:18:51 +00:00
auria
be1abb965e Apply patch by winterheart to build with latest irrlicht SVN. Yes, this means you need to update to latest irrlicht :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10229 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-20 00:15:47 +00:00
auria
35d01606f7 Add some checks to catch errors earlier
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10228 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-19 23:41:26 +00:00
auria
16f9237b62 Fix non-translatable stirng
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10226 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-18 19:53:18 +00:00
hikerstk
4f6144b890 Fixed handling of multiple gamepads on windows on non-english systems
(the name of the driver is translated, so the if condition would not get
triggered).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10221 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-17 03:08:57 +00:00
hikerstk
d1e132fbcb Fixed physical history replay, it appears to be bitwise identical now (#498).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10220 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-16 21:15:25 +00:00
hikerstk
e37c225654 Reset the 'reminder' time maintained by bullet (which uses fixed
time steps), so that in physics replay the time steps are now
correct.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10219 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-16 01:37:08 +00:00
hikerstk
6ece9c5624 Removed unnecessary #include, sorted class declaration, added &
to getResetTransform.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10217 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-15 12:05:41 +00:00
hikerstk
7c7cc76925 Fixed distribution of cmake files with autotools.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10207 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-14 22:29:15 +00:00
hikerstk
c537c6873e Reset history data each time a race is started (to avoid that previous
history data is used).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10204 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-14 11:57:11 +00:00
hikerstk
09d998bc24 Only save history when the key is pressed (and not again when it is released).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-14 11:56:14 +00:00
hikerstk
7f086ded7a Bugfix: physics replay didn't work (due to incorrect sscanf format).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10202 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-14 06:05:27 +00:00
hikerstk
311fef8726 Replaying now loops back to the beginning of the recording. Note that
atm the physics values of karts (speed, suspension etc) are not reset,
which can cause difference when looping.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10201 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-14 06:04:32 +00:00
hikerstk
e264ce269f Fixed rubber ball bouncing too high (#496), r10181 on 0.7.3.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10182 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-13 22:51:07 +00:00
hikerstk
751a7a7791 Fixed ball squashing when it hits the ground.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10180 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-13 22:33:57 +00:00
hikerstk
79bb18870b Fixed compilation problems, removed unused code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10179 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-13 22:28:38 +00:00
hikerstk
587084e712 Updated documentation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10176 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-13 20:54:35 +00:00
hikerstk
158bf71046 Fixed include path.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-13 20:53:23 +00:00
hikerstk
b5db07c453 Added downwards impulse which is proportional to
the speed, to help keeping the karts close to the
ground.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10159 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-10 12:01:36 +00:00
hikerstk
1f7d055fa8 Bugfix - max would get too big, resulting in out of bounds
accesses.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10158 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-10 11:57:15 +00:00
hikerstk
686c0307a8 Bugfix, a boolean can not be tested if it is initialised.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10157 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-10 01:06:20 +00:00
hikerstk
4a5a8edcb7 Added --phsyics-debug option, which (atm) will make the graphical
wheels invisible if they don't touch the ground.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10156 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-10 00:59:40 +00:00
hikerstk
ed200a2302 Added missing function to get downward impulse factor.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10155 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-10 00:56:01 +00:00
hikerstk
8c6c38592e Fix #494: thunderbird disappears if the game is paused while the countdown is being shown.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10153 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-10 00:27:11 +00:00
hikerstk
e000547e4e Mostly cosmetic changes (line length etc), but also
enabled the exponential spring response property
(which was added previously but not used).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10148 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-09 12:31:37 +00:00
hikerstk
b34fc058aa 1) Added new physics properties to kart_properties
to tune kart stability.
2) Made the kart accessible in btKart (so that the physics
   can access the kart properties directly).
3) Removed unused tuning variable in constructor of btKart.
4) Removed jumping related code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-09 04:49:53 +00:00
hikerstk
dbec3ae30a Replaced btKart with a fresh copy of bullet's raycast vehicle (i.e. all
STK specific tuning was removed). STK callbacks for zipper and sliding
are empty, only projectVehicleToSurface was added back in.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10144 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 12:16:40 +00:00
auria
c577e285c4 Dynamically update list of tabs in arenas screen, to better handle when addons arenas are first installed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10142 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 02:12:28 +00:00
auria
36c979471f Update Xcode project for bullet
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10141 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 02:08:02 +00:00
auria
2dec4bdb98 More compilation fixes.....
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10140 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 02:06:21 +00:00
auria
3e260658cc Another compilation fix
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10139 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 02:02:57 +00:00
auria
cede3074bf Fix build issue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10138 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 02:00:33 +00:00
auria
b2fe74e0c2 Show GP progress even if something is unlocked
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10136 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 01:50:31 +00:00
hikerstk
a4c709e822 Another try to fix freebsd compilation: instead of a separate function for
time_t, add 32 and 64 bit int version (from stdint.h and/or some specific
windows typedefs).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10134 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 01:14:49 +00:00
auria
c672f9f99c Fixed brake, a binary control, being actived if value > 0 with no deadzone
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 01:08:38 +00:00
hikerstk
9c748575f6 Applied Radifar's update so that trunk will compile on VS10.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10130 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 01:04:58 +00:00
stephenjust
5b805aff07 Use proper freeBSD identifier to generate user-agent (somebody please copy this commit to 0.7.3 branch)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10128 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-08 00:37:14 +00:00
hikerstk
92011168dc Added assert statements to catch NANs early on, plus a patch
to add the assert statements back next time bullet is updated.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10124 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-07 20:43:00 +00:00
hikerstk
1b2bb6eed3 Updated files that I missed before.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10123 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-07 10:40:27 +00:00
hikerstk
91ae822c25 Update to bullet 2.79 (somewhat work-in-progress, but it appears to be working fine so far).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10122 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-07 08:51:51 +00:00
hikerstk
fdc495b5bd Third try (or so) to fix freebsd compilation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10108 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-06 10:32:33 +00:00
hikerstk
04087dd0b1 Simplified function by removing duplicated code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10105 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-04 10:57:30 +00:00
hikerstk
3a6d1c16b5 Removed code that's not used anymore after r10103.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10104 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-04 05:38:08 +00:00
hikerstk
227bcdd773 When installing addons the karts/tracks are now not all completely
reloaded, only the new addon is loaded. This should also fix a
(minor) memory leak when a kart model is updated (textures and
mesh weren't freed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10103 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-04 05:32:31 +00:00
hikerstk
1088fd35c8 Use a reference as return value.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-04 05:30:27 +00:00
hikerstk
c3c1c023d6 Yet another try to fix freebsd compilation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-04 02:12:09 +00:00
hikerstk
fc7d327350 Fixed memory leak (and incorrect behaviour of STK) when ESC
is pressed instead of 'cancel' to stop downloading an addon.
Before this the download would actually finish.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10098 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-03 01:54:46 +00:00
hikerstk
1d44201493 Also remove the actual implementation of the function
for freebsd.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10092 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-02 22:50:33 +00:00
hikerstk
7300ff945c Cosmetic changes (added comments etc).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10091 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-02 05:32:25 +00:00
hikerstk
b9ea877ca3 Removed overloaded function for freebsd (where apparently time_t is same
as int).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10089 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-02 03:15:19 +00:00
hikerstk
71753ed3c2 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10075 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-01 23:07:15 +00:00
hikerstk
b5224f04eb Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10073 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-01 23:00:22 +00:00
hikerstk
a145ec9c0f Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10072 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-01 22:17:00 +00:00
auria
35aa87674d Add code to make normal maps work. Joerg: don't worry about this change being done near a release, we have no track atm using this feature, so this code will remain sleeping until, probably, 0.8
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10070 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-01 01:52:10 +00:00
auria
5af9ce44b1 Add adjustable AI handicap in stk_config.xml
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10066 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-30 20:37:14 +00:00
auria
2b152542ae Oops, committed debug code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10063 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-29 22:52:49 +00:00
auria
cb6a1a45af Tweaks to credits : remove outdated translators section from the CREDIT file, use the credits that Launchpad puts in the .po file instead
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10062 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-29 22:34:45 +00:00
stephenjust
b262a63d24 User-agent should now specify Linux (or FreeBSD - needs testing, but I'm optimistic)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10061 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-29 21:49:07 +00:00
hikerstk
e8b331de03 Further reduced steering angle at high speed to make the karts
easier to control at high speeds. Instead of using two speed
and two different radii, now an arbitrary number of points (i.e.
speed and radius at that speed) can be defined, stk will interpolate
linearly between the points.
The new settings leave the setting of 'normal' speed (i.e. without
powerup) identical, only reduces the angle for higher speeds.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10058 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-27 23:42:00 +00:00
hikerstk
d88c97b588 Disabled debug output for rubber ball.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10057 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-27 23:38:33 +00:00
hikerstk
44eec35a43 Removed translating the mesh (if graphical mesh and bullet collision body
are not the same). Instead the difference between the mesh and the body
is applied before setting the new location in update. 
Also fixed some minor line length issues.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10051 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-27 01:07:10 +00:00
hikerstk
da80f39ed4 Removed patched 10044 to 10047, since there is a much
easier patch to fix #458.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10050 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-27 01:04:16 +00:00
hikerstk
fc94795eac Don't give rubber balls in debug mode in three strike battle.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10049 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 21:18:50 +00:00
hikerstk
1099f3aa69 Make sure that no debug drawing happens if debug mode is disabled
(turns out that besides out explicit calls to debug drawing bullet
includes additional calls, and they were still executed even if
debug was disabled).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10048 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 21:17:24 +00:00
auria
9251f75064 Remove silly part of my previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10047 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 15:39:01 +00:00
auria
658cd9c401 Attempt to work with irrlicht mesh cache stuff
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10046 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 15:36:31 +00:00
auria
66ad858aa8 Attempt to fix desctructor of TrackObject + fix issue with texture retention
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10045 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 15:27:56 +00:00
auria
953e8cf1ef Almost fix Nolok wheel issue in 3 strikes mode. Note, my fix is not complete and will result in segfaults in 3 strikes mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10044 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 15:18:46 +00:00
hikerstk
5d6f1ed4a4 More cosmetic only changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10043 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 05:03:13 +00:00
hikerstk
3f73183228 Cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10042 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 05:01:51 +00:00
hikerstk
3f96f3529b Rubber ball will now detect tunneling and try to avoid it
(if a ball tunnels four times in a row it is removed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10041 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 20:48:36 +00:00
auria
9ca73ca5f3 More on Doxygen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10040 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 17:53:07 +00:00
auria
d04bc58413 Quite a bit of work on Doxygen docs to contain an overview of the STK source code base
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 17:46:14 +00:00
auria
41581f7d4d Probably fix dark chest issue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10036 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-22 19:53:21 +00:00
auria
afbcceefda Remove accidentally committed leak_check change
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10027 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-21 01:17:45 +00:00
auria
cc59b47845 Add a comment for translators, forgot that in the previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10025 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-21 01:15:32 +00:00
auria
6afc18f9dc Add a message for the ball
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10024 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-21 01:14:59 +00:00
hikerstk
22bde657f8 Fixed crash when pressing F8 in main menu (#477),
and some minor code cleanups.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10022 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-20 02:23:47 +00:00
hikerstk
492b58f8ce Bugfix: tabs could not be selected anymore. Reason was a change
from std::string & to const std::string & in r10008, and as
a result a virtual function was not overloaded anymore.
This patch changes all transmitEvent functions to use
const std::string &.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10021 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 23:39:28 +00:00
auria
0eefff60fc Fixed leak when winning a GP and unlocking a feature
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10018 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 21:14:35 +00:00
hikerstk
b9e4325560 Added 'early targeting': the rubber ball will align its relative position
to the center of the track according to the relative distance of its target
(more precisely: it will move the interpolation control points). This
results in the ball being better align when it switches to aim-directly-at-
target mode, meaning that the target-distance can be reduced, hopefully
reducing the frequency with which tunneling happens.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10016 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 20:14:03 +00:00
auria
81ce56c358 Attempt to fix crash found by KroArtem
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10015 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 18:09:52 +00:00
auria
0cf64fd1e1 Fixed icon of locked karts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10013 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 16:36:08 +00:00
auria
55841fbbbe Tweak thunderbird location during rescue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10012 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 16:09:43 +00:00
hikerstk
5471eca8ca Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10008 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 10:59:55 +00:00
auria
c8e5c1304e Largely minizime the impacts of anti-aliasing being broken by post processing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10006 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-17 22:18:27 +00:00
hikerstk
55cb9941b5 A rubber ball hit is now a proper explosion (i.e. it also affects
other karts close by), and the hit message is shown (we need
better hit messages for rubber balls ;) ).
Renamed checkDistanceToTarget() to updateDistanceToTarget.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10005 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-17 06:07:44 +00:00
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
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
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
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