Commit Graph

6165 Commits

Author SHA1 Message Date
funto66
5fedffcb75 Fix soccer mode crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12297 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-21 21:26:53 +00:00
funto66
a05e26bf05 Soccer mode - WIP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12296 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-21 21:04:10 +00:00
funto66
3c8634d3af Soccer mode - WIP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-20 12:49:38 +00:00
funto66
d814a8c676 Fixed compilation with USE_WIIUSE + tests with the nunchuk
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12293 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-20 10:50:58 +00:00
hikerstk
9a0af72683 Bugfix: when pressing reload, news.xml was reloaded, but not assets.xml
(which is addons.xml). Improved debug output to print full URL of
files that are downloaded.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12287 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-17 23:24:33 +00:00
mbjornstk
93b3826179 Add egg hunt source files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12286 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-17 21:22:28 +00:00
hikerstk
d9c66a8bf6 Fixed compilation errors on linux and several warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12285 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-17 01:27:44 +00:00
hikerstk
29be45b198 Added preliminary easter-egg mode. It still needs a icon (battle mode
used atm), and a better easter egg model (atm bunny from snow mountain,
... whith turns out has lost the black nose). One track has easter eggs
added (math class).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12281 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-17 00:33:47 +00:00
funto66
6edcfb1a00 Added Halloween mode, with the worst temporary icon ever - happens in October
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12271 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-12 01:03:44 +00:00
funto66
047d075a45 git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12270 178a84e3-b1eb-0310-8ba1-8eac791a3b58 2012-12-12 00:07:23 +00:00
hikerstk
872cb2d7f6 Removed unnecessary warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12255 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-10 23:31:34 +00:00
hikerstk
dab54738c1 Fixed memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12229 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-10 06:11:18 +00:00
hikerstk
e62cae9ad9 Install shortcuts for all users, not only active user (since the installer is
running as admin, installing STK as a non-admin user would otherwise not create
the shortcut for the non-admin users, but only for the admin user).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12225 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-10 03:06:29 +00:00
auria
1a269ac4ac Add a couple leak-check macros
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12224 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-10 01:31:41 +00:00
auria
78d964b79d try to fix sound leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12222 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-09 23:30:26 +00:00
auria
2ce395ba0d Don't hardcode player ID
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12220 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-09 22:14:27 +00:00
hikerstk
02b730b3e5 Fixed engine sfx in overworld.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12217 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-09 12:36:37 +00:00
auria
cf4dd96871 Fix memory overflow
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12215 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-08 22:35:27 +00:00
auria
4da81936a7 FIx paths
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12201 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-07 01:28:10 +00:00
auria
865a73c076 FIx paths
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12200 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-07 00:57:10 +00:00
auria
4838a1eb2f Clear AI-override when appropriate, fixing #829
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12198 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-07 00:24:20 +00:00
auria
92fea12684 Make highlighting of devices in use more selective
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12194 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-06 23:56:56 +00:00
hikerstk
05cec70d86 Fixed 'map fire to select' option by also work for gamepads, only
accept fire (and not any event like steering), and remove setting
the flag each frame.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12191 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-06 23:43:09 +00:00
hikerstk
fe20c7d6a1 Accept 'fire' key in addition to 'select' to select a kart.
Auria, please review for potential inclusing in 0.8.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12187 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-06 10:58:04 +00:00
hikerstk
d77471b446 Refactored information exchange between modes and race GUIs:
instead of each mode maintaining an array of data for each kart
which is used by the race GUI, use one array in race_gui_base,
which is then filled by the game mode.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12186 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-05 04:04:01 +00:00
hikerstk
fe221d21b3 Removed debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-04 02:38:26 +00:00
hikerstk
6214c696cc Removed unused function.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12141 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-02 22:01:08 +00:00
hikerstk
5c57eaf325 Missing in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12140 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-02 22:00:28 +00:00
hikerstk
e752634309 Made direction in which kart steers after hitting a bubble gum random.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12139 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-02 21:59:27 +00:00
hikerstk
1b90422deb Fixed shaking of karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12137 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-02 21:16:20 +00:00
hikerstk
8a7155ba5e Fixed bowing ball strike sfx, which was missing.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12134 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-02 10:29:18 +00:00
hikerstk
1f0d603dbd Improved plunger handling when in-race menu is shown: now
the plunger is also shown while the menu is on screen.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12120 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-01 12:14:46 +00:00
auria
bbf4d7eab5 Don't announce fort magma as unlocked when its not
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12117 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-01 03:10:48 +00:00
hikerstk
8d782bc7ee Bugfix: plunger would still move while the race is paused, resulting in players
being able to wait till the plunger is off screen.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12116 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-01 03:10:42 +00:00
hikerstk
60529bca5c Fixed #812 - two karts given the same position, which happens in
0-lap races. Fixed by letting overall_distance be negative at start
(which should have no other impact - time estimation function is
improved to handle this).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12104 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-29 11:59:33 +00:00
hikerstk
8c1f9188e6 1) Minor bugfix: if a kart ahead finishes the race, the AI would not
reset the kart ahead pointer to be NULL but instead keep the old
   data (which could result in AI not using weapons against karts
   behind), and similarly for the kart behind if it gets eliminated.
2) Minor code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12103 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-29 05:40:15 +00:00
auria
34908764e7 Reword swatter string to work around gettext issue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12099 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-29 00:05:25 +00:00
hikerstk
70afa12d49 Fixed incorrect animation in case of a GP challenge (#815).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12097 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-27 22:01:00 +00:00
hikerstk
6ebf8b6565 Added Fort Magma to last Grand Prix once the game
is completely unlocked (before only 4 tracks will
be in the last GP).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-27 12:09:16 +00:00
auria
9c59842db9 Show what was unlocked
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12092 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-27 00:41:38 +00:00
auria
839ee99c5e Add back the ability to show unlocked tracks and GPs (not yet used)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12091 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-26 23:51:10 +00:00
hikerstk
db0303146d Added additional debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12089 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-26 10:14:53 +00:00
hikerstk
0c4565041f Locked Fort Magma till the final challenge is won.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12088 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-26 09:59:41 +00:00
auria
77b84f3042 Fix bug related to physical LOD nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12087 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-26 01:32:04 +00:00
hikerstk
bd3d8cf2a3 Fixed minor leaks happening when an old highscore file is read (#683).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12081 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-25 23:51:42 +00:00
hikerstk
cd8948902a Bugfix: if the first end camera was a static_follow_kart,
the position was not set in the first frame, resulting in
an odd 'zoom' effect.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12080 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-25 22:59:34 +00:00
hikerstk
604f61d1b4 Forced LOD=0 when a kart finishes a race, this way end animations
are shown even when the end camera is far away from the kart.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12078 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-25 22:24:54 +00:00
auria
425a648af1 tweak end cameras and add them back to island
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12071 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-25 20:07:13 +00:00
hikerstk
36a15015d8 Fixed #806: clicking on challenges in overworld did not
teleport karts anymore.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12068 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-25 11:50:24 +00:00
hikerstk
dab600b5ea Fixed #787 - all locked karts are shown as selected when
one is selected.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12067 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-25 10:09:37 +00:00
auria
a4bb3e3f58 Undo part of r12016, which was incorrect
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12062 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-25 02:49:42 +00:00
hikerstk
0601eaa1da Made skid-mark code a bit more consistent, and fixed #797:
no skid marks when skidding but not steering.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12058 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-24 13:13:32 +00:00
hikerstk
e8900f69e6 Fixed #796 (**:**:** as time), which happens if the race is aborted
before a kart has moved (due to a division by zero). Now 99:59:00
is displayed instead, but in case that there should be other 
circumstances that trigger this problem, use 99:59:99 instead of
**:**:**.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12055 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-23 13:13:38 +00:00
hikerstk
701ed00dbc Changed minimum and maximum visual suspension, and fixed
algorithm to compute visual suspension - this should fix
#794 (wheels sometimes in kart).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12054 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-23 11:38:56 +00:00
auria
570546e5cb Don't pause music on overworld when opening challenge dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12046 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-22 01:07:09 +00:00
hikerstk
379bc69a6a Fixed memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12019 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-21 00:13:06 +00:00
hikerstk
e47d94af34 Fixed uninitialised variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12018 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-20 04:13:12 +00:00
hikerstk
fe6294d0d4 Fixed two uninitialised variables, removed unnecessary #include.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12017 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-20 02:57:21 +00:00
hikerstk
9cb86d4555 Fixed partly missing trophies on minimap at left side on large
resolutions (#745).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12016 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-20 01:43:59 +00:00
auria
b157227e51 Properly place icons on minimap when the allocated texture was bigger than needed to accomodate drivers/gpus that quite POT textures
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12015 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-20 01:28:04 +00:00
auria
6aa15502a4 Fix going back to overworld if needed when aborting GP from race over screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12014 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-20 01:01:53 +00:00
auria
bd591d83b5 back to overworld if relevant when losing GP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12013 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-20 00:59:32 +00:00
hikerstk
8d2a00ab58 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12010 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-19 02:19:32 +00:00
auria
dc3ab0244d hackish fix for bug #791
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12009 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-19 01:42:11 +00:00
hikerstk
2dd07ff3d7 Increased highscore version number so that old highscores (0.7*
and alpha release) will be deleted (which avoids problems of
having too good highscores for sandtrack, which was replaced).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12008 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-19 01:24:13 +00:00
hikerstk
43b7f28d54 Added a setting to stk_config.xml to replace normals that are
'too different' from the normal of the triangle with the
normal of the triangle for interpolating the normals which
are used by the physics.
This should make 'smooth normals' more useful for tracks where
track and (say) a wall are connected, resulting in incorrect
normals for the physics.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11989 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-18 22:22:30 +00:00
stephenjust
0eb2682926 Fix release build for VC10. Note that you need to delete all irrlicht-related files from the dependency pack for this to actually work.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11977 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-17 21:55:09 +00:00
stephenjust
db9ff32496 Fix 32 bit build in VC10
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11976 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-17 21:33:47 +00:00
hikerstk
8d05b69494 Fixed crash at end of a demo-mode race (for one frame the
race result gui is active while there is no world).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11961 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 12:51:26 +00:00
hikerstk
1822c7e266 Fixed crash in demo mode when demo mode is started while 'internet yes/no'
dialog is shown (or the track info dialog). Together with r11958 this fixed
#663.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11960 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 12:39:56 +00:00
hikerstk
e727e34b9d Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11959 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 12:34:49 +00:00
auria
4cc1222681 Try to fix #663
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11958 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 01:57:36 +00:00
auria
643db2ac47 Fix bug that overworld would remember position when switching player
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11957 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 01:10:22 +00:00
auria
1b86065775 Add doors in overworld, that block Nolok's challenge until the end
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11955 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 00:42:38 +00:00
hikerstk
9ad6ea9653 The windows installer now asks to run the uninstaller if an
existing STK installation is found, and will not install
otherwise. This avoids problems when installing a new
stk on top of an older stk installation (e.g. old tracks
might show up in new installation, but not work). 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11953 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-15 11:38:57 +00:00
hikerstk
8fa7b8a0d0 Avoid crash in case of problems with sound.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-15 02:04:03 +00:00
hikerstk
3b4c5f3bbb Made steering for keyboards less sensitive (or slower)
at smaller steering angles, and a bit more fast at higher
steering angles (resulting in overall the same time-till-full steer).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11951 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-15 01:20:36 +00:00
auria
7921acc4aa Don't let players switch identity in single player mode. In single player mode this should be changed in the options screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-15 00:56:11 +00:00
hikerstk
04c3b93bb1 Avoid NAN problem if a kart with velocity 0 is involved in a collision.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11949 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-15 00:10:36 +00:00
auria
6325e02b16 Fix pressing escape in kart select screen gonig to overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11948 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-15 00:09:36 +00:00
hikerstk
7e1709e710 Re-added textures that were not used in main stk, but in some addons
to a separate 'deprecated' directory (#666).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11939 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-14 06:06:32 +00:00
hikerstk
9aad59398b Fix one more potential crash.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11938 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-14 06:03:00 +00:00
stephenjust
03d22f0087 Update VC10 project to use included Irrlicht. (not fully tested with 32-bit build, but it should work)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11937 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-14 04:57:57 +00:00
hikerstk
93da1096fc Fixed crash in STK if a version number was only
two digits (like "0.5" instead of "0.5.0"). This
happens with the classic sand track.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11936 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-14 04:31:11 +00:00
hikerstk
53cccb87da Made non-reverse the default for all tracks; added
'reverse=yes' to all tracks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11935 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-14 01:45:43 +00:00
hikerstk
b73f9f46db Disabled end-controller debugging.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11934 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-14 01:07:59 +00:00
hikerstk
2d89d85a70 Fixed #785: end controller crashes into wall in math class.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11928 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-12 21:47:21 +00:00
hikerstk
87528e542c Fixed #738: when winning a challenge on higher difficulty
that had been unlocked earlier, it would not save the
new state.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11927 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-12 21:05:09 +00:00
hikerstk
f532178d59 Fixed #761: don't play win animation if challenge was started
but not fulfilled.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-12 12:05:09 +00:00
hikerstk
e6ce0c80ac iFixed #747: missing points in FTL GP.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-12 06:26:37 +00:00
hikerstk
def292edcf Physics-debug would crash when a GP is finished.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11924 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-12 06:25:36 +00:00
hikerstk
49f54f2aee Added different impulse in case of a kart-track collision
(just acting along the normal). This solves some of the odd
behaviour with the previous implementation if the kart is
off track. The new way is now the default, but the 'push
towards driveline' can be set in stk_config.xml.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11923 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-11 21:56:54 +00:00
auria
4f439acf13 Rework a bit select challenge dialog. Show most important information first. Fix required rank for FTL
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11916 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-11 01:41:51 +00:00
auria
82e814dfa4 Fix mouse cursor not hiding when starting race from overworlD
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11915 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-11 01:30:11 +00:00
auria
40dc6ceba8 try to fix crash in outro cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11914 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-11 00:15:03 +00:00
auria
d95c760fba Reduce font size when intro subtitles are too large
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11911 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-10 23:52:30 +00:00
hikerstk
f83bc0627b Fixed missing end animations (#767), caused by the LOD
node animating the static model only.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11910 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-09 11:31:12 +00:00
hikerstk
367e8b18dc Disable auto-rescue in arenas by default.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-08 22:44:42 +00:00
hikerstk
2cb5c6475e Fix #495: everlasting bomb - caused by getting a new
item while a swatter was playing the remove-bomb
animation. In this case the bomb scene node was
not removed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11901 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-08 21:03:31 +00:00
hikerstk
c316abda19 Added setting to disable push-back and auto-rescue for
each track. Manually set those in overworld.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11900 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-08 06:02:35 +00:00
hikerstk
e3b57e5de0 Added separate setting for time back from full steer to
steering straight, which might reduce oversteering somewhat.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11893 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-07 23:28:48 +00:00
hikerstk
8334246dd4 Fix #620: crash in projectile manager because a hit effect
is NULL (no idea how that could have happened in the first place).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11892 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-07 20:49:30 +00:00
hikerstk
c720ed602e Fixed #726 - explosions not removed when restarting
a race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11889 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-07 11:23:17 +00:00
hikerstk
a541eef436 Fix #766: slipstream bonus still active after rescue.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11888 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-07 05:57:46 +00:00
hikerstk
b18c65b863 Challenges are now only fulfillable when they are started from
overworld. Esp. the problem that a single race challenge is
fulfilled in a GP challenge (which is quite confusing)
is fixed (#764).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11878 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-06 21:53:30 +00:00
hikerstk
4517086afe Fixed compiler warnings, added some comments.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11877 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-06 21:51:16 +00:00
auria
18ad621664 Update OSX compilation. Still uses irrlicht from the dependency pack
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11870 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-06 01:46:41 +00:00
auria
156745e598 Clarify what happens when hitting a force field that is not open
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-06 00:46:36 +00:00
hikerstk
a65147cad5 Bowling balls will only affect karts that are
directly hit now.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-04 12:57:03 +00:00
hikerstk
381412322e Fixed #697: after a kart explosion a kart would immediately be
rescued again (caused by floating point errors etc, which can
cause a kart after an explosion to be under the track).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-04 10:36:04 +00:00
hikerstk
37fa73991b Fixed crash in replay recorder when too many events happened.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11858 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-04 10:08:35 +00:00
red-skull
2d93303425 Fix for #736: do the timeout a better way so it won't stop a working download.
Also add a dialog to alert the user when downloading an add-on fails.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11857 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-03 22:58:57 +00:00
hikerstk
2a88016c9a Fix #739: kart remains squashed when rescued etc.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-02 05:30:45 +00:00
hikerstk
42761853d9 Removed plunger-in-face testing when F1 is pressed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11855 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-02 05:18:47 +00:00
hikerstk
48fa6119ee iMade VS use the new included irrlicht version, and ignore
building related files.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11854 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-02 04:24:46 +00:00
hikerstk
5f63c02d1a Updated VS 10 project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11849 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-01 12:20:32 +00:00
hikerstk
b1caec75a1 Fixed comments and removed tabs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11845 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-31 00:41:39 +00:00
auria
2e8966a86f Fix crash on OSX caused by optimisations (reduce optimisation level a little)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11842 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-31 00:26:35 +00:00
auria
ddd9710413 Update xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-30 23:50:32 +00:00
hikerstk
7c69adcc56 Added setting for disabling slipstream bonus (to be used mainly
with easy AI to make sure building train doesn't give it too much
bonus on easy) ... and fixed the existing implementation of
not giving a slipstream bonus to actually work ;)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-30 12:05:23 +00:00
hikerstk
885c0c0b1d Added setting to disable caching of overworld to
user_config file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11820 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-30 05:48:50 +00:00
hikerstk
7b43e95fa8 Removed unnecessary parameter of InterpolationArray constructor.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11819 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-30 05:47:02 +00:00
auria
44b757381e Modify skidding probability into something that makes more sense to me. Joerg, feel free to change if you find better
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-30 01:00:36 +00:00
auria
9f31509898 Indicate challenge type
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11814 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-30 00:10:54 +00:00
hikerstk
9b74d0cdd0 Added caching of textures for overworld.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-29 23:14:30 +00:00
auria
d9fd492d50 Play some music on feature unlocked screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11812 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-29 23:07:22 +00:00
hikerstk
fb84565bf8 Added probability to collect an item for the AI, to allow us
to make it a bit less competitive.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11811 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-29 22:06:17 +00:00
hikerstk
dca5e568af Improved documentation, renamed variables, simplified code somewhat.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-29 00:09:05 +00:00
hikerstk
24e396cb72 Restrict X movement of plunger, fixed plunger always moving right.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11808 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-28 23:43:29 +00:00
auria
50a99ee486 Apply patch by Steel to disable animations when the animated level of detail is not visible. Thanks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-28 23:37:18 +00:00
hikerstk
9112283551 Quick try of using two different speeds instead of no-speed/slow speed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11806 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-28 23:27:40 +00:00
auria
898be773c3 Fix changing between players
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-28 23:19:57 +00:00
hikerstk
78865a5608 Move the plunger a bit more randomly.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11804 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-28 23:19:20 +00:00
auria
3d6f24544e Apply patch by steelstyle to not hide mouse in overworld when closing a dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11802 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-28 23:06:36 +00:00
auria
8111440317 Make ipo animations always enabled. + start of work to have music on the challenge completed screen but doesn't appear to work yet
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11801 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-28 22:54:40 +00:00
auria
844cd1692c Potential fix for #706
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11787 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-28 03:40:21 +00:00
auria
ace58348ef Fix music gain in MusicInformation. Use it appropriately to boost West music, and quiet down overworld music
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11775 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-27 19:19:04 +00:00
hikerstk
eebdd939b0 Made slipstream area wider (at the side that furthest
away from the kart), so that it's hopefully a bit easier
to get slipstream.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11765 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-26 05:12:59 +00:00
hikerstk
40e46221d4 Properly used constant variable instead of hardcoded value.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11764 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-26 05:09:32 +00:00
auria
7195131d14 Apply patch by Steel to make sure giving up a race can't give you a highscore or challenge
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11762 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-25 23:17:10 +00:00
hikerstk
ddea03ebe5 'Animated' the plunger-in-face somewhat, and additionally reduced
plunger-in-face time somewhat.
Atm you can test by pressing F1 in a race (which I'll remove soonish).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-25 21:51:07 +00:00
hikerstk
09e9768df0 Removed unnecessary tests.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11760 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-25 20:54:19 +00:00
hikerstk
bbf071aec5 Added a minimum skidding speed (below which a kart can't skid),
which also fixes #716.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11759 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-25 06:03:59 +00:00
auria
44a36a8bbf Apply patch by Steel to make the timer count down during a timed challenge. Thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11757 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-25 00:21:54 +00:00
hikerstk
6c1e4e8846 Fixed kart-flying bug: pressing repeatedly 'skid' would push
the kart higher and higher (#722).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-24 21:02:02 +00:00
hikerstk
67487883f8 Bugfix: when m_skid_time was close to 0 (say 1e-8)
the visual rotation could become huge, resulting
in incorrect and constant visual rotation of the kart.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-24 09:14:29 +00:00
mbjornstk
7341c5c61f Remove from build system the recently deleted AI files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11754 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-24 00:16:11 +00:00
hikerstk
cfb77ac6e4 Removed old default and present AI (which do not support new skidding).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11752 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-23 21:46:44 +00:00
hikerstk
4a4168c42f Bugfix, thanks to Deve for fixing this.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-23 21:19:50 +00:00
hikerstk
c5720e7925 Fixed sing a skidding probability (before the random number
was tested each frame, making it mostly certain that skidding
was done).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11748 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-23 21:13:17 +00:00
mbjornstk
1006d04cf5 Add header to fix "invalid use of incomplete type class Controller".
r11740 added sound effect and uses kart->getController().


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11747 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-23 03:09:40 +00:00
auria
68fdb1b971 Another step to make STK more lively in the audio department : add a sound when receiving a plunger in the face
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-23 00:19:58 +00:00
auria
c8ee962a3b Change multiplayer join message to fix #678
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11738 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-23 00:03:51 +00:00
hikerstk
ecc1212c11 Allow changing the various levels of AI mostly using
the stk_config file.
Note at this stage no tuning of easy or medium level was
done, this version should behave the same as the hard-coded
version.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-22 21:51:05 +00:00
hikerstk
6058c3bcfc Committed Steel's patch for #708 (endless loop).
Thanks!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-22 04:01:51 +00:00
hikerstk
7d33125f54 Mostly cosmetic change: renamed RD_EASY etc to
DIFFICULTY_EASY to make it easier to understand;and
removed separate DIFFICULTY_COUNT constant and
replaced it with an entry in the enum (this means
one less change if a difficulty is added). 
Changed layout to be closer to our style in race_manager.hpp.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-21 23:06:33 +00:00
hikerstk
68711524bf Fixed compiler warnings and comments.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11732 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-21 23:03:08 +00:00
hikerstk
3a6133f6d6 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-21 22:49:08 +00:00
hikerstk
0adcd00342 Use maximum height of a quad when determining if a kart is
on a quad or not. This fixes the problem that the AI can
not drive up the ramp in sandtrack.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11730 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-21 20:48:33 +00:00
auria
c174368274 Apply patch by Steel_ to display hgihscores at the end of a race, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11725 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-20 19:01:45 +00:00
auria
4412643213 Apply patch by 'Steel_' to correct crash in 3-strikes mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11724 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-20 18:51:07 +00:00
hikerstk
fa21cb89f5 Fixed typo ... which resulted in the AI braking most of the time.
Welcome back, competitive AI ;)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-18 05:33:42 +00:00
hikerstk
90d6f45a3a Imrpoved skidding: getting out of skid reset the visual rotation
exponentially, so it was not in sync with the physical rotation.
Getting out of skid should now be smother.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-17 21:51:10 +00:00
hikerstk
4a8a40c7e8 Removed unnecessary warning; made debug mesh less transparent.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11702 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-17 21:48:42 +00:00
hikerstk
1a0e877f28 Make the AI drive a bit less close to items it tries
to avoid.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-17 06:20:47 +00:00
hikerstk
1c5dc7568e Added additional debug output in case a nan occurs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11698 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-17 06:19:20 +00:00
hikerstk
b04194303a AIs will now reduce their speed if they are too far ahead of the
player.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-17 06:14:43 +00:00
auria
19d0c04774 properly implement sphere collision shape support
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-16 22:45:44 +00:00
hikerstk
fbb9e5f8d2 Refactoring: interpolating values is now handled in a separate class
InterpolationArray. This class is now used for the skidding probability
of the AI and the turn radius of all karts (which depends on speed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-16 05:51:46 +00:00
auria
4f7f1379df Add small feature : in addition to allow resetting a kart when touching something, allow making it 'explode' the kart like when receiving a cake
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11687 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-16 00:09:33 +00:00
auria
a6c2efc48a Fix converting HPR to bullet quaternion
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11686 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-15 23:51:36 +00:00
hikerstk
ebfd22b480 Added files missing in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11683 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-14 22:23:07 +00:00
hikerstk
ef2a1524c4 Added a skidding probability which is dependent on the to the
first player (i.e. slightly rubber-banding the AI).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-14 20:59:51 +00:00
red-skull
5d5d004d3f Bugfix for #682: we now allow to remove addons when no access to the net is available.
Also add a timeout for download request.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11679 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-13 19:49:48 +00:00
auria
a24b7e5f6d Rename sharp turn into skidding in options
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-13 01:02:46 +00:00
auria
c7d352346e Reset bubblegum effect on restart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11677 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-13 00:18:54 +00:00
auria
a8adde409d Overworld : honor music disabled flag
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11674 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-12 23:01:59 +00:00
auria
c76c418ef7 Improve physics body synchronisation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11673 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-12 22:38:35 +00:00
auria
dab73fa8cf Make overworld play its music
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11672 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-11 21:47:50 +00:00
hikerstk
376252d953 1) Added 2 different findNonCrashingPoint algorthm - one which fixes a known
bug in the default algorithm, and one replacement. Unforatunately, the old
   (and somewhat buggy) algorithm is stil the best.
2) Improved handling of 90 degree corner for the default AI. Now the karts shouldn't
   have any more endless rescue loops.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-08 06:04:30 +00:00
hikerstk
669e18be67 Renamed getFloatTimeSincEpoch into getRealTime (since this time
does not need nor is based on a fixed epoch). Changed getTimeSinceEpoch
back to the previous implementation which returns time in seconds since
1.1.1970 - this is important to compare addon download time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11657 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-02 07:17:28 +00:00
hikerstk
eb82e6caff Fixed Ais crashing into the corner of Fort Magma - though on the other
hand it's not driving as competitive in other tracks now (e.g. math class).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11656 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-01 22:41:33 +00:00
hikerstk
fdd4739d94 Added addSphere to irr_driver to make debugging code a bit more flexible.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11655 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-01 21:53:40 +00:00
hikerstk
0d97658552 Use irrlicht's timer instead our own self-made timer which apparently
has some problems on windows (causing incorrect animations).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11654 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-01 03:37:14 +00:00
hikerstk
463088f022 Fixed another compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11653 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-01 02:58:01 +00:00
auria
72d9c64430 Fix bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11652 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-01 00:11:47 +00:00
hikerstk
32ec4f8aee Fixed crash when using track_debug with the intro scene.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11651 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 23:32:00 +00:00
hikerstk
92c18c2432 Fixed more compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11650 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 23:31:00 +00:00
hikerstk
72d856dc03 Fixed various float vs double compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11649 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 23:28:09 +00:00
auria
d92a5b1ba1 Make getFloatTimeSinceEpoch more precise to bring back smoothness during cutscenes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 22:24:41 +00:00
auria
a582ab9265 Improve cutscene synchronization (survive hangs)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 21:43:50 +00:00
hikerstk
eaedc47ddc Fixed findOutOfRoadSector to take the height into account
(previously incorrect quads were found in FortMagma, when
driving slightly off track beneath a different part of the
track - and while this did not affect the kart's steering
in this case, it could cause problems in other places).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11637 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 13:11:07 +00:00
hikerstk
3a3d1a5a6f Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11636 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 12:16:01 +00:00
auria
5a4f767403 Add special escape-menu on overworld, and make Nolok's bubble gum swapper-proof
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11635 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-29 22:46:29 +00:00
stephenjust
1edbed185d Update VC10 project files
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11634 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-29 19:03:49 +00:00
auria
48d480a67d Add tricks I hope help dramatically improve the synchronisation between the STK physics and irlricht animations in cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11633 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-28 01:52:09 +00:00
hikerstk
4363adcabe Fix #702 (you could collect skid bonus while being rescued).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11630 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-25 07:14:44 +00:00
auria
f687659929 Try workaround for #700
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11629 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-22 18:37:47 +00:00
mbjornstk
bea4454946 Add missing inetwork_http.cpp, hpp version was already in (uh?).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-21 22:05:53 +00:00
auria
be16eea136 Make main menu actually produce the intro
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11624 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-21 01:31:08 +00:00
hikerstk
9b51751e31 Made the time for the physical body to be in sync with the
graphics after a skid configurable - though atm this is still
set to the same time, so no noticable difference.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11620 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-20 23:06:19 +00:00
hikerstk
eb44d3d9c5 Updated VS 9 project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11619 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-20 23:01:06 +00:00
hikerstk
9f642a41b8 Bugfix, use of (now) undefined network_http variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11618 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-20 21:45:59 +00:00
hikerstk
1d30e22ad9 Work around gles problem for now.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11617 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-20 06:19:38 +00:00
hikerstk
d126d7c76f Properly implemented NetworkHttp using a interface and
a singleton-like pattern.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11616 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-20 05:51:19 +00:00
auria
d169fdfacc Actually lock GPs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11615 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-20 01:25:20 +00:00
mbjornstk
38cfc79deb Update build system after enet & bullet got moved to lib/ directory.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11614 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-20 01:13:32 +00:00
hikerstk
d5c8a92d7d Removed 'work in progress' includeded accidentally in previous commit.
- line, and those below, will be ignored--

M    player_controller.cpp


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11609 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-19 07:04:50 +00:00
hikerstk
ea82c76fbe Made skidding react something faster: instead of the kart deciding which
direction to skid (which can take some time till max steering is reached
because of smoothed steering) the decision is now done in the control.
So now you can start skid left while the wheels are still in 'right'
direction.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11608 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-19 06:56:56 +00:00
hikerstk
16fe9bdccd Compililation fixes if no X11 is available.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11607 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-19 04:39:05 +00:00
hikerstk
260a06df0a This file was missing in r11589 - it is the actual camera change, so far
there was no difference.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-19 00:59:08 +00:00
hikerstk
4032197bee Updates VS 9 and 10 project files. VS 10 was not tested at this stage.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11600 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 23:53:24 +00:00
auria
435447b093 Update xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11599 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 23:27:50 +00:00
auria
011d6c98f0 Move libs to a new directory
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11598 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 23:09:12 +00:00
auria
bdf50e6ae2 Fix bug over previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11597 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 22:59:37 +00:00
auria
6c81939430 Intro and end and now for real\! Intro will play once the first time you play, and end plays after you beat nolok
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 22:50:44 +00:00
hikerstk
4f835f341f Minor bugfix to get compilation without oggvorbis to work.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11595 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 06:46:22 +00:00
hikerstk
7c454def10 Minor bugfix.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11594 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 06:27:44 +00:00
hikerstk
6eca109725 Added option to let the camera follow the skid angle (there is still
some discrepancy due to smoothing of camera movement). For now
enabled in stk_config.xml.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11589 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-17 21:42:33 +00:00
hikerstk
4a8058947e Fixed missing skidding SFX (#645).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11588 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-17 06:15:19 +00:00
hikerstk
7b99faeeb8 iDisable steering for players when a skid is stopped (till the physics are
aligned with the graphics again). That _may_ help with controlling the
kart better after skid. Testwise enabled by default - feedback welcome.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11587 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-16 22:50:59 +00:00
hikerstk
ba1fd13a2a Properly reset skidding when a kart is rescued or explodes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11583 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-15 10:29:52 +00:00
hikerstk
e64ce8d6f3 Removed unnecessary and confusing code: an eliminated never calls
update() ... but if it would, it would potentially call a kart_animation
that is NULL.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11582 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-14 06:37:31 +00:00
auria
29701f1591 Nolok the boss never has false starts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11581 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-14 00:14:12 +00:00
auria
30d75a957a Improve Nolok'as special abilities a little, and switch to the end cutscene after beating him, then after that go to credits. This gives a reasonable ending i think :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11580 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-14 00:03:38 +00:00
hikerstk
97890455c9 Fixed incorrect skidmarks/particle effects when skidding and a
graphics-only jump is being done.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11577 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-13 21:55:28 +00:00
hikerstk
4a6f5ea494 Made initial skidding jump graphical only (both options can
be set in stk_config now).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11576 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-12 22:11:13 +00:00
hikerstk
a7a881174d Removed Ai debug (again).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11575 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-10 23:05:53 +00:00
hikerstk
72044141d8 Correctly handle a case in which bad items are in front of items-to-collect
(previously the AI sometimes decided to aim for the good items, then to avoid
then ... and this undecided behaviour resulted in actually hitting the bad item).
Documented the item collection and avoidance code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-10 22:49:43 +00:00
hikerstk
8a2c1b466d Fixed memory leaks in case of --no-graphics (just to reduce
unnecessary output of LeakCheck).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11573 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-09 23:45:56 +00:00
hikerstk
1f4a25efab Disabled debugging (again).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11572 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-09 23:38:21 +00:00
hikerstk
18d77b9da1 Improved handling of zippers: zippers will now be selected earlier (previously
a kart needed 2.0 nitro in order to use a zipper), but won't be used if items
to avoid are close by (since zipper make it harder to avoid them).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11571 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-09 22:41:49 +00:00
hikerstk
5b6002fd8b Fixed code for debugging, made it easier to compare various version
of the AI (findNonCrashing old vs new; collecting vs non-collecting).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11568 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 06:17:24 +00:00
hikerstk
e58d0139b1 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11567 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 06:13:46 +00:00
auria
f74f945558 Add minimal support for GP challenges in the overworld. More to come
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 02:06:50 +00:00
hikerstk
d73b69ab09 Count how often a kart is off track for profile statistics.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11558 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 05:48:01 +00:00
hikerstk
1649ed5336 Nolok bubblegum flag might not be reset in case of a restart (not
entirely sure if this is necessary, but it can't hurt).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11557 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 05:46:39 +00:00
hikerstk
795bce6e67 Hopefully fixed crash: m_emitter was not initialised if a normal item
does not have a parent (resulting in a crash in when testing if
the emitter() was "nolok").


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11556 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 05:43:32 +00:00
hikerstk
775a346f19 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11555 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 04:53:22 +00:00
hikerstk
0ba86c2c3b Fixed counting of explosions and rescues in KartWithStats.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 04:52:39 +00:00
hikerstk
42b9550373 Added stats output sorted by controller groups (useful to compare various
AI controllers).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11553 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 00:43:26 +00:00
hikerstk
be34f742e7 Removed 'very clever' logic (to avoid trying to collect items that
are too far out of our way) ... which only resulted in the AI not
being able to decide which of two items to pick, and then driving
left/right/left ... till it missed both items.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 06:56:49 +00:00
auria
0f17674e1e Fix stupid crash, I should probably go to bed :) while I'm at it shut up harmless warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 02:06:55 +00:00
auria
d6a0b12df4 No pink skidlines for Nolok bubblegums
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11549 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 02:00:49 +00:00
auria
af219c1672 Give nolok his special bubblegum
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11546 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 01:16:01 +00:00
auria
718a90e009 Add nolok hammer sound
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11545 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 00:19:08 +00:00
hikerstk
fba4298b07 Fixed compiler warning in linux (and getPowerup() will never be NULL).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11543 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 23:39:00 +00:00
hikerstk
c50fc164b6 Removed debugging output and dead code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11542 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 23:29:26 +00:00
hikerstk
6c7bfd3050 Improved handling of situations in which a good and bad item
are close, which results in the AI getting the bad item when
trying to collect the good one. Some refactoring of code by
adding a hitLine function to Item.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11541 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 23:17:09 +00:00
auria
06821dc880 Give nolok a special swatter
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 01:54:28 +00:00