Commit Graph

632 Commits

Author SHA1 Message Date
auria
ec0a20c319 Fix bug #557 by deactivating challenge orbs when the player doesn't have enough points for them
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10719 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-25 02:09:10 +00:00
hikerstk
808ffa85f8 Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10709 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-24 03:22:59 +00:00
auria
792aac1e68 Improve where rescue will drop you in overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-20 01:14:15 +00:00
auria
aac43ad521 Improve starting challenge from overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-20 00:43:51 +00:00
auria
cd6185c2ee Start work on starting challenges from overworld. Note that it does NOT yet fully work.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-15 02:46:59 +00:00
auria
2916e527da More work on overworld UI + give the player infinite nitro
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10620 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-09 01:25:27 +00:00
hikerstk
e06c8a05fa Split updatePhysics into several shorter functions to make the code easier to
understand. Removed and simplified some functions. This should not change
anything in actual game play.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-04 21:58:33 +00:00
hikerstk
87865b7dec Removed unnecessary include of kart.hpp from world.hpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10572 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-04 05:32:19 +00:00
auria
2a96276da5 The oveworld GUI now has its own class, will be easier to work the UI as I want
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10532 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-31 22:07:49 +00:00
auria
c2d69b24f9 Display number of trophies in overworld HUD
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10461 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-20 22:01:45 +00:00
auria
32f8666d10 Make overworld GUI cleaner by removing timer and rank
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10459 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-20 20:08:19 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
ef069d50a0 Fix #428: scene node of eliminated kart in battle mode was still
visible.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9875 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 00:55:18 +00:00
hikerstk
ca1093a563 Cosmetic changes only (to follow style guide).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9874 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 00:51:11 +00:00
hikerstk
a615b952c2 Cosmetic changes only (to follow our style guide).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9873 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 00:43:43 +00:00
auria
5e905e4322 Added support for the gettext context feature
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9862 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 18:07:59 +00:00
auria
3029d01014 Fixed a couple minor typos found by marclennart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 00:12:12 +00:00
hikerstk
3185c5fcc9 Cleaned up world.hpp:
- sorted declarations so that all virtual functions
  are together.
- Renamed *_IDENT variables to IDENT_* so that the
  naming is consistent
- Using std::string& for IDENT_* instead of char*
- Use pointer for out variables in getDefaultCollectibles.
- Moved m_fastest_lap variable from world to LinearWorld.
- Many many cosmetic changes to follow our style guide.


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


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


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 23:11:12 +00:00
hikerstk
f85556d83a Added thunderbird as start referee. Known bugs:
1) Ready, Set, Go is still shown.
2) Orientation of thunderbird is not correct in
   all cases (esp. in battle mode).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 00:48:49 +00:00
hikerstk
d3d0b87d93 Replaced #include with forward reference to reduce dependencies.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 23:43:15 +00:00
hikerstk
124c795120 Cosmetic changes only to follow our coding guidelines.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9820 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 23:42:06 +00:00
hikerstk
c298f6ef85 Applied Khonkhortisan's patch for #423: use the actual kart wheel models
when losing the final tires.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 02:51:33 +00:00
auria
9878f12039 Improve and simplify improved rescue code; also remove the CHEATER message I tried to add because it had some glitches
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:57:14 +00:00
auria
1f19560a29 More tweaks to improved rescue, plus as a bonus use the additional info we now have to let users know when they missed a checkline
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:28:46 +00:00
auria
2311b11b90 Added new smart rescue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 23:59:49 +00:00
auria
ee7b178dce Started adding code to assign a checkline to each quad (currently disabled). See #398
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 19:46:51 +00:00
auria
58c634e1f4 Apply patch by khonkhortisan to lose 4 tires in 3 strikes mode, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9792 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-10 21:47:23 +00:00
auria
11c698e29d Fixed the timer remaining stopped when exiting race from pause dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9784 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-08 01:27:04 +00:00
auria
a3eb3e293a Slightly tweak location of spare tires in 3 strikes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9782 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 23:50:25 +00:00
hikerstk
1eaf8b436d 1) Fixed #407: crash/memory leak in battle mode.
Just dropping the last reference to the mesh
   does not remove the pointer to this mesh from
   the mesh cache --> in the next race when the
   tire model is loaded again the mesh cache tries
   to load a freed mesh.
2) Fixed floating tires: TrackObjectManager::removeObject 
   does not remove the scene graph or physics world.
   Just leaving them in the objects managed by
   TrackObjectManager frees them as expected
   (side note: I am considering refactorin removeObject ;) ).
3) Improved documentation on ThreeStrikesBattle.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 21:45:21 +00:00
hikerstk
1d2a0f4b89 More fixes in case that we have a kart without wheels.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9777 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 00:56:14 +00:00
hikerstk
eb12aedbbf Fixed compilation problem if this file is compiled.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 05:17:21 +00:00
auria
2d6cb641c5 In 3 strikes you now have only 2 spare tires, to be more logical. And when you lose you actually lose your wheels.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9763 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 23:21:21 +00:00
hikerstk
c7c9f8150a Simplified vo_ngan_90's patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9752 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 04:14:50 +00:00
auria
6e98f90a48 Apply patch by vo_ngan_90 to pause particles and waves when paused, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 23:44:27 +00:00
auria
68b56d0c05 Remove unused parameter for race GUI message, plus use title font for the WRONG WAY message instead of this ugly pink font that was there before
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 20:23:55 +00:00
auria
79f5f69b9e Change order in which tires are lost
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9706 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:59:05 +00:00
auria
a87d0c5f2b Fixed 3-strikes wheels not reappearing when restarting race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9705 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:56:22 +00:00
auria
03178d9e75 Kinda fixed crash I introduced in 3 strikes, but the current code leaks. Will need to ask Joerg how irrlicht memory management works...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:47:15 +00:00
auria
3e7aeaf71f HAving some fun : you will now physically lose a tire in 3-strikes mode. Watch out for tires all over the place as the battle gets fierce ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 20:09:26 +00:00
auria
d1ee59b1e2 Tweaks over previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9604 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-22 00:42:21 +00:00
auria
6ba44be4f7 Give a go at the 3-spare-tires idea for 3 strikes battle
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9603 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-22 00:35:31 +00:00
hikerstk
0821fe3728 Removed the hard-coded usage of only one kart in profile mode
with graphics, since this can now be done using the --ai=... flag.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9540 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-17 00:09:11 +00:00
hikerstk
2172f1c4df Applied changes from statistics branch to trunk (r9413 - r9484).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-15 02:00:50 +00:00
hikerstk
6e5086f9b8 More refactoring: duplicated code handling track sectors and
distance along track is now moved into a separate class TrackSector
and used in linear_world and rubber ball.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-04 23:33:41 +00:00
hikerstk
428ed5a07b Made QuadGraph use a singleton-like behaviour. It is still created with
explicit calls to QuadGraph::create(...), and the get() function can
return NULL (in case of a race mode that does not use a quad graph).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-04 23:02:58 +00:00
hikerstk
48cf9e0515 Updated computation of 'distance from start' for the
quad graph: now the distance of the node is the maximum
of all paths leading to it, which should solve the 
problems with the cube (#354).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9416 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-03 06:21:26 +00:00
hikerstk
e0d34ffdcd 1) Fixed counting of explosion for statistics.
2) Fixed layout of result table in case of
   profile-laps.
3) Fixed average speed computation.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9404 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-01 07:10:33 +00:00
hikerstk
029e50381d Added more statistics for profile mode:
skidding-time, and time+count for rescues and exposions.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9399 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-01 00:06:13 +00:00
hikerstk
c5ef5eb705 Beautified profile results table in case that karts name are
too long (or too short).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9385 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-29 06:25:12 +00:00
hikerstk
83680f4637 Added --ai=a,b,... command line option to allow specification
of which AI karts to use.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-28 22:56:49 +00:00
hikerstk
a62e0f86d3 1) Added new --no-graphics option for fast batch testing.
Renamed --profile=+-n options to --profile-laps=n
   and --profile-time=n.
2) Fixed averaging in case of --profile-time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-27 12:11:11 +00:00
funto66
d26b406780 Starting the merge with the swatter branch. Now it should be automatic with karts, but doesn't work with items (yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-15 23:38:40 +00:00
funto66
a8919a8252 Added experimental and buggy hardware skinning support + removed a useless loop in the material manager
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-14 00:59:00 +00:00
funto66
93ed8113d3 Added markers for World::update() and made the profiler optional
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9225 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-10 10:33:42 +00:00
hikerstk
c9830eac8c Worked around a potential linux audio bug: on one machine
the sfx manager kept on reporting that it was playing (the
track intro sound), while it wasn't. That resulted in STK
hanging (not reaching the 'ready set go' phase).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9192 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-08 01:22:43 +00:00
funto66
1c2795f0c8 Added a debug option to skip the ready-set-go phase
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9168 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-05 21:22:50 +00:00
hikerstk
8e0d7789b1 Fixed #298: the karts were rescued to 'last valid quad - 1'
instead of using the predecessor. So a kart on the first
quad of a short cut would be rescued to an incorrect
location (most likely to the end of the main driveline,
since shortcut quads come just after the main driveline
in the quad.xml). See r9161 on 0.7.2.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9166 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-05 01:39:38 +00:00
auria
51a02272f0 At Arthur_D's request : in artist debug mode, when there are no AI karts, skip the ready/set/go messages quickly to make testing go faster
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9130 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-01 23:59:25 +00:00
auria
0631de56d0 More work to make arenas debuggable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9096 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-26 22:59:06 +00:00
auria
2d824186fd Fixed crash when starting into an arena from command-line
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-26 22:49:09 +00:00
auria
9d52fa1e46 Make new fastest lap messages much less visible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-04 00:12:38 +00:00
mbjornstk
47f8d29011 Remove more useless exec properties.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8798 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-01 21:19:18 +00:00
auria
6e4cee9341 Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
auria
624d050571 Display when you get a highscore (it's a little subtle for now but at least the infrastructure is there)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8707 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-25 01:53:15 +00:00
hikerstk
8c22b21166 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 04:56:18 +00:00
auria
da85204faf Partial work towards showing highscores when they are made
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 01:34:02 +00:00
auria
357af5a27d More work on 'thou shalt not include irrlicht.h everywhere carelessly'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:29:52 +00:00
auria
11e925f867 Fix musical note hiccup bug by preparing track music in 2 phases
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-11 01:47:27 +00:00
hikerstk
86329d7ec5 Changed order in which race gui and track are released to
avoid memory debugging having inconsistent texture information
at startup and cleanup time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8507 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-03 07:14:04 +00:00
auria
8b725a88c2 Major audio cleanup : remove sound effects names. Now their filename is their identifier. This simplifies things a lot
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-23 00:22:16 +00:00
hikerstk
62fb47aeed Added support for textures to trigger a reset on collision (separately from
triggering reset when driving on).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-17 22:06:45 +00:00
auria
6b6cc3f7bf Remove outdated TODOs + fix typo
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-01 14:48:25 +00:00
auria
c54809ebe2 Fixed lightning being multiplied in multiplayer mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8174 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-01 14:41:18 +00:00
hikerstk
28aaaf4f5b Added --ftl-debug command line option, to print some debug information for
FTL (esp. GP) races.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8018 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-21 06:15:39 +00:00
auria
3a3619750a Artist debug features are now enabled even in release builds, but disabled in config by default
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-02 00:04:13 +00:00
auria
589abb4333 Only play start and lap fanfares if music is enabled
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7771 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-28 16:19:43 +00:00
auria
6df90a2a75 Fixed strings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7743 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-20 23:14:26 +00:00
hikerstk
78eb5a09eb Replaced raycast used in detecting the terrain is on: instead of raycast
against the dynamics world, it's now using a raycast against the triangle
mesh only (i.e. a single collision body instead of the whole world).
Besides being faster, this will allow raycasts with material detection
against the 'gfx' (surface) mesh.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-13 00:23:23 +00:00
hikerstk
913596663b The AI now picks a different (random) path for each lap.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-12 07:35:34 +00:00
hikerstk
240d39636c Added support for 'graphical' meshes - atm mostly for water surfaces
(and below water meshes), so that water splashes can be displayed at
the proper position (not used atm).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-09 21:56:44 +00:00
hikerstk
8ab10035a1 Updated VS10 project file, and started to add minimal race gui.
This was only committed early to update the VC10 project file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7656 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-08 12:59:32 +00:00
auria
238f572c36 Say hello to the new rain, one that is much, much less CPU and GPU intensive. Joerg: sorry, you will need to modify the exporter again, since now we need support for some built-in weather types, which use a different XML syntax than particles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7642 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 02:45:32 +00:00
auria
f48a82d2d4 fixed several failures of StringUtils::insert, I have no idea why they failed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7641 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 23:44:17 +00:00
auria
a580f413e3 Fix kart names not being translated on live language switch + correct more RTL issues I found on the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7632 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 02:49:45 +00:00
hikerstk
4ab6331ff4 Update to bullet-2.77.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7579 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-02 22:04:13 +00:00
hikerstk
67f33edbeb Fixed 3164026 - lap not counted in snowmountain: when a kart was rescued
it would be set to the last valid sector, and the lap count to the last
valid lap count. If the kart triggered a lap count while being off
track, the lap count would be decremented, but the lap line is already
deactivated, so it would not count again. Since the last valid lap count
was stored to solve an old problem (being reset to before the lap line
would count the lap again), and this is not necessary anymore, the whole
storing of last valid lap was removed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7529 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 20:33:14 +00:00
auria
009960fc8a Clean up call to fribidi, add capabilities to insert values to the _ macro
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:39:10 +00:00
mbjornstk
015443f582 Set props as per SVN-CONFIG for .[ch]pp, AKA SVN props clean up day. :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-21 01:54:38 +00:00
auria
f774aef2c4 Add animation setting middleground : only human players karts are animted
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7487 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-20 02:43:32 +00:00
auria
bf0743b354 Restored line that was accidentally removed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7434 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-16 01:28:25 +00:00
auria
24d0d549ba Improve error handling in XML classes (namely, atoi must die) since I was bitten several times now by insufficient error handling. Also set up base architecture to support the new gfx mode 'my kart is animated but not Ai karts', though it doesn't work atm for the simple reason that at the time the model node is created we do not yet know if the kart is player or AI...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7432 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-16 00:06:59 +00:00
auria
fa8b2a8ed6 Improve documentation of race manager; this is one huge class so having good doxygen docs is important. Also clarify difference between setNumPlayers and setNumLocalPlayers; replace many calls to setNumPlayers with calls to setNumLocalPlayers, since setNumPlayers is called by the network manager already and as such calls to setNumPlayers had no effect (the same method was called again later) and were just confusing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7236 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 20:17:44 +00:00
hikerstk
4f1af3a862 Auto-rescue will now not be counted as a hit in battle mode anymore.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7111 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 12:21:48 +00:00
hikerstk
214bf5deec Fix bug in FTL: if the kart on position 1 was eliminated (i.e. it had
overtaken the leader), and the race is over, the leader was moved back
to position 1 (so that all points are given correct), but the ranks
were not adjusted properly, potentially resulting in duplicated ranks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7110 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 11:58:10 +00:00
hikerstk
39d4fe5fb7 Fixed incorrect rescue positions in battle mode, which could
result in a crash (bug #3140030).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 02:41:02 +00:00
auria
10299aae86 Don't display rank in 3 strikes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7099 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 01:19:05 +00:00
hikerstk
fd3895b45f Fixed severals problems with FTL GP: GP rank od the leader must be -1
(some GP ranks were not set at all).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7098 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 01:16:03 +00:00
hikerstk
4d2a1d9faf Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7097 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 01:01:53 +00:00
aeonphyxius
2427aed571 Tutorial development incremental commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 00:52:59 +00:00
hikerstk
811550eb7f Removed tabs, fixed compiler warning ("/*" inside a comment).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7045 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 23:04:23 +00:00
aeonphyxius
d672a5446b tutorial new classes, VC project and main menu screen.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7043 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 22:57:13 +00:00
hikerstk
c17ec200cf The --track-debug flag now also tests all reset positions for all
karts and prints a warning if the rescue position would result in
an immediate rescue again (which usually indicates that the
driveline is too low, and the kart is rescued 'under' the track).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7029 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-15 22:50:17 +00:00
auria
7f97094b87 Fixed numerous leaks, especially audio leaks + add debug functions to be able to easily check for audio leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-08 22:18:55 +00:00
auria
4447f3431e Don't show lap message on last lap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 23:36:14 +00:00
auria
b83f850cd4 Don't show lap message on first lap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 02:07:38 +00:00
auria
3fe9acd0e9 Show a message on every lap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6812 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 02:04:18 +00:00
hikerstk
b800ddd200 Made the 'wrap around' lap counting approach work correctly.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6782 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 22:01:59 +00:00
hikerstk
65d563ee2e Fixed profile world (ProfileWorld::CreateKart was not called anymore
since the parameters for that function had changed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 02:34:25 +00:00
hikerstk
18f8b831aa Fixed bug in bugfix for 3090183: kart positions were
changed incorrectly down instead of up.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-16 06:02:58 +00:00
hikerstk
507dd4cbde Fix bug 3090183: if the leader in a FTL race is on position
3 just before the last kart is eliminated (and a kart on
position 1 will be eliminated), the kart on previous position
2 (after elimination on position 1) will get too many points.
This situation is now detected, and the position of the
remaining karts are adjusted before scoring.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6583 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-15 23:28:05 +00:00
hikerstk
1987c155f0 If no valid start position is found, automatically enter flying mode
(in debug compilations).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-15 09:47:44 +00:00
hikerstk
c40e50f4f1 Fixed crash in battle mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6485 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 21:45:06 +00:00
auria
166f342a06 Fixed KroArtem-reported rare bug with music dimmed down during last lap fanfare
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6419 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-05 19:19:39 +00:00
hikerstk
58a8444112 Avoided 'wrong direction' message if a kart is rescued or playing
an emergency animation (see bug 3100384).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6387 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-02 09:11:47 +00:00
hikerstk
6881c51be8 Fixed crash in case that no music is defined for a track.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6344 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-26 21:51:45 +00:00
hikerstk
062fa61d60 Handle tracks that are not found better (track manager does not
throw an exception anymore, it instead returns NULL).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6338 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-26 06:14:46 +00:00
hikerstk
b900230305 Fixed compiler warning and some comment typos.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6284 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-13 22:37:41 +00:00
auria
5e482d9989 Fixed restart race bug + other issues possibly introduced by my scheduling of pausing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6280 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-12 22:32:33 +00:00
auria
16408bc258 Reduce volume of background music while playing last lap fanfare + don't play last lap fanfare in one-lap races
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6271 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-12 01:24:26 +00:00
auria
1cb2b1caa3 Fixed sound being shortly unpaused when switching screen and sound is off
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 23:12:30 +00:00
auria
157133673c Fixed compilation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6258 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 21:53:04 +00:00
hikerstk
19b225a7ce Added improved default start positions. Start positions now follow the drivelines,
and the scene.xml file can specify how many karts to set in one row, and the
distance between karts in X and Z direction.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6256 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 21:49:35 +00:00
hikerstk
2dad6ea54f Fixed compilation in case of non-debug compilation when
DEBUG_KART_RANK is defined.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6247 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 02:49:35 +00:00
hikerstk
34a7a538fe Fixed debug code: a change of a kart rank was not detected
(and so no debug info for a rank change was printed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6246 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 02:29:50 +00:00
hikerstk
4694be90c3 Reverted patch 6123 (introducing AI steering variations), since it
resulted in AIs driving badly (even when the variation was set to 0).
This patch will be re-considered later, after the alpha 3 release.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6129 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-23 23:18:53 +00:00
hikerstk
2c7213b83e 1) Added support for AI steering variations: AI karts will now not
steer to the same driveline point, but to points slightly to
   the left and right. The maximum variation is defined in
   stk_config.xml (and should be between 0 and 1).
   ATM THIS IS DISABLED! Since in my tests it appears that
   the AI is not driving as good as previously anymore, i.e.
   it drives more S-lines on straights etc. To enable this change
   steering_variation in stk_config.xml
2) AI now handles multi-items better by waiting a certain amount
   of time before using the next item.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6123 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-23 07:21:52 +00:00
hikerstk
2c98d511fe Fixed graphical error in FTL races when music is enabled
(see bug 3072740): the countdown timer caused incorrect
values to be used for the 'music credit' display.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6121 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-23 07:17:04 +00:00
hikerstk
6b46f3162f Fixed uninitialised variable (which was used around line 695).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6120 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-23 03:45:08 +00:00
hikerstk
1f348ac93f Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6078 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 14:46:07 +00:00
hikerstk
82fcdef6fb Add a 'time per kart' to the leader intervals, which is defined
in stk_config. This is to balance races with larger number of 
karts. Note that the changes to stk_config was part of the
previous commit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6073 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 01:16:41 +00:00
hikerstk
5fc601c9d9 If the number of laps used previously (or set via a command line
option) was too small, a leader could 'finish' the race, and while
no message would be printed, its distance calcuation become incorrect.
To workd around this issue (and to avoid making the code in
linear_world even more convoluted) I just set a large number
for the number of laps in case of a FTL race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5998 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-14 05:21:55 +00:00
hikerstk
209d9582a8 Fixed bug 3064849 - crash in FTL.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5981 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-13 23:10:40 +00:00
hikerstk
ea7e1e2734 Applied jmimu's patch to fix icons in battle mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5953 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-10 05:16:52 +00:00
hikerstk
5abf327e13 Make sure that karts that have already finished the race (and are
driven by the computer) do not generate any 'fastest lap' messages
anymore (see bug 3061466).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5942 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-09 01:46:05 +00:00
hikerstk
707c440548 Fixed bug in bugfix ;) Non-debug mode would still crash.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5910 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 11:25:48 +00:00
auria
e4b1d27aca Fixed compilation problem in non-debug mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-06 16:59:00 +00:00
hikerstk
ebf6f561a9 Completely removed getRaceResultOrder functions, added debug support
for duplicated ranks to world_with_rank.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5898 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 14:05:59 +00:00
hikerstk
442168e845 More bug fixes for FTL mode, and started some code simplification.
By now FTL should basically work (i.e. not crash and list karts 
in the right order at the end), though the reported times are
still not correct.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-05 01:07:44 +00:00
hikerstk
1b3778ca6a Moved setting of the position of each kart into
setKartPosition, some simplifications to ftl.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 13:38:23 +00:00
hikerstk
3480562b78 Added a new object in the world hierarchy (WorldWithRank) which
contains all codes related to ranking the karts (which is used
to display the icons in the race gui and the end result table).
The battle mode should now be fixed, but follow-the-leader
has still issues and will most likely crash at the end.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 13:14:07 +00:00
hikerstk
ebd72f318b 1) Fixed last lap sfx still being played when a race is restarted.
2) Fixed last_lap sfx not being played in the last lap of a restarted
   race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 03:03:37 +00:00
hikerstk
1643701ff7 Applied jmimu's patch to remove 'new laps' etc. messages when a race is
restarted.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 02:59:52 +00:00
hikerstk
10616dab38 Applied jmimu's patch which shows players affected by attachments
and explosion in the player icon list, and 'animates' if a kart
is overtaken another kart. Thanks a lot for this patch!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 00:44:11 +00:00
hikerstk
0e84cdf091 Modified behaviour of startup boost: instead of giving it to the first
two karts, it is now given for all karts starting withint a certain
amount of time. These times and boost value are specified in
stk-config.xml.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5855 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 00:19:06 +00:00
hikerstk
18b7bd7736 Added new race result gui, which is an actual screen now. This is still work in progress
(e.g. atm it's not possible to skip part of the result animations, so for now you have
to wait till the buttons appear before you can continue).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5770 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-24 23:19:14 +00:00
hikerstk
ab92817eb6 Removed unnecessary variable (which was actually declared and used in
WorldStatus).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-10 00:25:38 +00:00
hikerstk
3d7f706cfc Removed debug print statement.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5717 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-02 00:16:39 +00:00
hikerstk
14e41122a8 Replaced _DEBUG_PRINTS_LIKE_MAD_ with code that will only print
this information when a race position changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5715 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-01 23:30:13 +00:00
hikerstk
e291ce56ff Keep the race going (with end race controller) while the race
results are shown.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-22 22:49:56 +00:00
hikerstk
9549138017 Missing file from previous 'fix race restarting' patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-19 00:14:06 +00:00
hikerstk
969314e1f0 Fixed race restarting.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-19 00:11:03 +00:00
auria
2a4570f6c6 Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5693 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 15:47:47 +00:00
hikerstk
c4797d6dd7 Added FIXME to indicate why restarting a race is currently broken.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5692 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 13:55:55 +00:00
hikerstk
04f2bd7190 1) Started adding new race result screen, which is for now disabled in the game.
2) Replaced int* with std::vector<int> in raceResultOrder.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-15 22:41:41 +00:00
hikerstk
626f83087a Added new base class for race gui (in prepration for improved
result gui).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 23:03:54 +00:00
hikerstk
db9bf099e5 Fixed incorrect assignment to unsigned variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 13:11:05 +00:00
hikerstk
dee6536f14 Fixed g++ compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5672 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-08 02:32:50 +00:00
hikerstk
e9837ca8fc Added some startup speed boost, mainly for testing. The first two
karts to press 'accelerate' after 'go' will receive a boost. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 23:53:27 +00:00
hikerstk
396db5ae2b Added intro sfx to be played before ready-set-go.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 23:10:47 +00:00
hikerstk
468e059a94 Added last lap sfx, which is played once when the first kart
starts the last lap.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5656 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 00:11:42 +00:00
hikerstk
63d5f62cdb Removed unnecessary declaration.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5627 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 22:48:12 +00:00
hikerstk
61cc735179 Fixed memory overwrite that happens when the in-game menu is
displayed during the end animations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5601 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 00:16:09 +00:00
hikerstk
744d9dd0fb The default start positions are now transformed/rotated if the lap
counting line is not centered around 0,0,0 or not parallel to the
X axis.
Note that this requires all lap counting line in the scene.xml files
to be 'oriented', i.e. the first point must be the left point, and
the second one the right point (r5488 updated this for all current
tracks, and r5487 updated the track exporter to do this automatically).
As a result of this the start positions might now be a bit too close
to the starting line (depending on where the chess-pattern is on the
track), and that might need some additional adjustments.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5490 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-08 23:30:45 +00:00
hikerstk
9bf9dea62c Bugfix: karts which had their arrival time estimated would not get the appropriate
points displayed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5478 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 21:40:45 +00:00
hikerstk
e0328642f1 Added new 'UNDEFINED_PHASE' to catch incorrect pause/unpause
sequences (instead of re-using SETUP_PHASE as was done previously).



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5477 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 03:31:41 +00:00
hikerstk
0a59455a82 Removed LIMBO state, added new RESULT_DISPLAY_PHASE (but at this stage no
visible change to user).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-10 23:53:32 +00:00
hikerstk
807274dc9f Fixed VS compilation problem.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5418 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-10 03:20:42 +00:00
auria
e84cb5d10c As discussed with Joerg : started removing maximum number of karts limitations
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5410 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 18:39:07 +00:00
hikerstk
ad6afbe036 Minor updates to documentation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5396 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-06 23:26:49 +00:00
hikerstk
c7880fe80c Cosmetic changes to output of rendering statistics.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-06 23:25:11 +00:00
hikerstk
29539dd39f Added statistics about rendering to profile output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5387 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-06 05:53:06 +00:00
hikerstk
56ebedd175 Fixed item handling in battle modes by adding an additional 'position class'
to data/powerup.xml for battle modes. This makes it unnecessary that modes
can select which powerup are available, therefore this code was cleaned up.
Also added some minor code simplifications.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-04 13:54:49 +00:00
auria
bfd3aca466 Fixed glitch when doing 'race again' in 3 strikes mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5330 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-30 21:03:39 +00:00
auria
f57252e914 Nicer screen at the end of 3 strikes battle
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5328 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-30 20:36:36 +00:00
hikerstk
e9413ccf46 The probability of which item is collected now depends on the race
position. The actual distribution is defined in powerup.xml (and
probably needs some adjustments).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5320 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-30 01:11:22 +00:00
hikerstk
ac42071c82 Moved PowerupType into PowerupManager (some minor work on
weights for powerups started, but nothing more than some
declarations).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5309 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-28 13:17:02 +00:00
auria
009c30b229 Removed some old bit of code in LinearWorld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-25 19:38:26 +00:00
auria
c3fe0cb910 More work to enhance Doxygen output
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5250 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-23 20:48:56 +00:00
hikerstk
5696fc0c73 Moved explosion and rescue handling to EmergencyAnimation object
(previously called ExplosionAnimation).
Updated vs project file for latest changes as well.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-22 13:21:35 +00:00
auria
297f0cceb4 Renamed SoundManager into MusicManager, since this makes it much clearer what it does (it was just confusing to have SoundManager and SFXManager)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5228 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-21 17:24:02 +00:00
hikerstk
e36f0fdd8f Made profile mode work again. Only one kart is now used as well, which allows
us to profile the effect different karts have.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5210 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-18 23:22:15 +00:00
hikerstk
f19e163385 Fixed the very unlikely and unimportant bug that a kart that does not start and has
never driven on a valid quad will cause a crash when rescue is triggered.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5195 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-14 13:16:32 +00:00
hikerstk
7e998399cd Fixed bug with kart positions (a position might be used more
than once).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5192 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-14 00:06:10 +00:00
auria
ee7e16b696 Adding the debug prints I used to figure what's wrong with ranking code (disabled but there to enable again)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5170 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-11 19:44:52 +00:00
auria
04ba1f96ae Added checks to catch the ranking bug much earlier (yay)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5169 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-11 19:28:53 +00:00
hikerstk
b58c29b697 Added fog to karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5139 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-09 13:00:40 +00:00
hikerstk
1b5f33e210 Fixed history debug files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5133 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-08 12:45:57 +00:00
auria
e8bafc33b3 Improved debug error message to be more readable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5116 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-07 00:26:47 +00:00
auria
1be79f8a72 fixed a FIXME (minor change)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5107 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-31 23:49:42 +00:00
hikerstk
f2c2d68c77 1) Improved AI. The AI still have some problems in tight curves and S curves,
but should be better than before. Basically the estimation of the turn
   radius was completely wrong and was replaced by a new and better
   algorithm.
2) Introduced new AI base class which has some common functions and variables.
3) Removed unused file auto_kart.hpp.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-31 21:53:32 +00:00
auria
3ed8cbc5da Save history file when ranking bug occurs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5099 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-29 22:21:34 +00:00
auria
ada40cf7a3 Added the ability to specify a case color (fixed mine to have black clear color). Not supported yet by track exporter
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5084 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-27 19:19:09 +00:00
auria
723aff006e I reproduced wrong kart rank issues again; adding more debug code to better track this bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5082 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-27 18:11:00 +00:00
hikerstk
e95d5ad5dd A historical commit: replaced highscores lisp files with xml,
allowing us to completely remove the lisp code from stk - hooray!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5072 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-25 22:29:47 +00:00
hikerstk
5f69e47451 Removed unnecessary debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5064 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-24 23:55:04 +00:00
hikerstk
887ab0110e Fixed bugs in computing kart ranks code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5000 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-15 11:25:01 +00:00
hikerstk
d50bd9dbe6 Merged the switch_coordinate_system branch with trunk. This means
that now all coordinate systems are y up, z forwards - including
the file format. For now only one track has been ported, the
rest will follow shortly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4985 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-12 02:16:11 +00:00
auria
9fb9278f31 Improved Follow-the-leader game ending. An assert failure might occur if one kart dies in front of the leader
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4964 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-08 20:31:37 +00:00
auria
0da7e2da10 Hopefully fixed bug about bogus kart rankings. 1) Made all karts be ranked at the same time, so there's less risk of mismatches 2) Found a precondition inside the sorting method, that was not documented in the doxygen comments, nor enforced with contracts... and sure enough someone somewhere called it without respecting that hidden precondition. Fixed the problem by removing the precondition (the new logic doesn't have the same precondition)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4959 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-08 18:39:05 +00:00
auria
32f1e24b4a Added sanity checks to debug bogus rankings, especially in GPs. Improved Doxygen documentation on the way.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4953 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-07 16:52:20 +00:00
auria
11c147c8e9 Display less important messages in white, at the bottom of the screen, to not detract attention from gaming. Fixed probable grammar mistake in string
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-07 01:35:57 +00:00
auria
d0624a7ab7 Improved vertical spacing betweewn messages to adapt to font (but multi-line messages are NOT supported anymore)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4931 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 01:58:27 +00:00
auria
d27e3d90c5 Show 'feature unlocked' screen when unlocking a feature. It's not yet complete : it doesn't really show what you unlocked, and you can't leave the screen properly (game crashes or hangs)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4889 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-01 20:17:31 +00:00
auria
620f63adc2 Dont give plungers in 3 strikes mode (we need more weapons for this mode\!)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 19:09:41 +00:00
auria
9b7a0fdc31 Some fixes with end-of-race messages;don't display 'you have finished the race' when you're killed in 3-strikes mode; don't display 'you have won' when using the 'race again' button at the end of three strikes; improved FTL end
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 19:09:05 +00:00
hikerstk
bd33113f20 Fixed incorrect heading and pitch in vec3, fixed rescue (again),
fixed checklines, improved camera (still not fully working), fixed
incorrect 'wrong heading' messages.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 13:20:22 +00:00
auria
eb15a6f11c Removed debug prints that should not have been committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4842 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 02:53:38 +00:00
auria
10834134d4 Started adding more interesting stuff to end-of-3-strikes battle dialog (more polish to come)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4841 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 02:52:07 +00:00
auria
08c0d291fb 3 strikes now has some ending instead of crashing (more to come)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 01:48:32 +00:00
hikerstk
fbeaa0524f More fixes to swap the bullet axis.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 05:23:00 +00:00
auria
6ef1b804a5 Disable swapper powerup in battle mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 01:57:25 +00:00
auria
9fb9d24f08 Committed my code to quickly 'profile' FPS, in case someone ever needs that again
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4816 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 01:24:48 +00:00
hikerstk
092a59a7d2 Very first changes. Doesn't really work yet and will most likely crash - not recommended to use :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-23 13:27:01 +00:00
hikerstk
078a56b5b5 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4776 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-20 02:43:57 +00:00
auria
76c6ddbc93 Fix FTL having no highscores as expected; don't display highscores in end-of-race dialogs when the mode has none
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-18 02:08:11 +00:00
auria
2478db386a Don't try displaying highscores in modes that don't generate highscores (3 strikes, FTL)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4757 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-17 23:52:49 +00:00
auria
bbd2ecb4c4 Clarified one method by using a enum type instead of simply 'int'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-17 23:35:25 +00:00
auria
263b94c706 Various fixes to get battle mode working again
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-17 16:48:12 +00:00
hikerstk
31e3806fd0 Refactor end of race handling so that more functions are done in a base class only
(esp. code that was previously duplicated in the battle mode and standard race).
There is now time for an end animation, even if the player should finish last
(in which case the previous end camera would not be shown). This mostly in 
preparation for end animations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4750 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-17 11:59:51 +00:00
auria
93cc5209f7 Converted sound effects file to XML. Along the way, refactored the audio code to be more flexible. before, when a sound changed, you needed to edit the config file of STK, edit the enum in the header, edit the loader in the .cpp... was annoying. Now you only need to edit the config file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 19:17:35 +00:00
hikerstk
da3de6d131 Big code refactoring: instead of having auto_kart, player_kart, the karts
now use a 'controller' object which is responsible for its steering, e.g.
a default_ai_controller, player_controller etc. This makes it easier to
switch a player kart to use a end-of-race computer controller to drive
the kart once the race is finished (though that's not implemented yet).
I expect some bugs with restarting race, and perhaps end of race
behaviour at this stage.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 00:54:28 +00:00
hikerstk
328373289a 1) Moved access to world object from race_manager to static functions in
world.
2) Removed more dujplicated/unnecessary functions from race_manager
   (getPlayerKart, getTrack).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-11 07:11:52 +00:00
hikerstk
b9ffb6fa13 Removed g++ compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4681 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 23:55:19 +00:00
hikerstk
4a96f98182 Removed player- and network-kart lists from world, so now
there is only one list used to access all karts in world.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 22:59:17 +00:00
hikerstk
47a1a1dfa2 Removed m_local_player_karts vector from world.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 12:47:18 +00:00
hikerstk
c6bf95a64c Started to remove the various kart lists in various objects.
1) Removed getKart from RaceManager.
2) Renamged RaceManager::getNumKarts() to getNumberOfKarts.
   This function should only be called when the world
   does not exist (or is not yet initialised). 	In all
   other cases world::getNumKarts() should be called.
3) Improved several 'const' functions.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 11:40:33 +00:00
auria
f78001c7b2 Misc nitpicking
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4675 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 02:11:56 +00:00
hikerstk
4e36fc1f78 Moved WorldStatus enums into WorldStatus class.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4673 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-09 09:24:45 +00:00
hikerstk
9a68e6e130 1) Renamed clock.?pp (which stored the class TimedRace) to
world_status.?pp (storing the class WorldStatus).
2) Fixed end of race in case that player kart is last
   (race would never end till esc is pressed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-08 12:59:03 +00:00
hikerstk
0465313495 Fixed race finish time estimation at end of race for AI karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4664 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-07 21:58:16 +00:00