Commit Graph

276 Commits

Author SHA1 Message Date
hikerstk
a693eb7eb5 Added reverse-sorting of addons (#916). Thanks to ingridmorstrad for the patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12673 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-18 22:44:18 +00:00
hikerstk
5648939d8f Fix clang warnings (#922).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-17 12:09:04 +00:00
hikerstk
9a9ff77812 iAdded new 'best' AI difficulty. ATM this is not locked yet, and
art work (icon) is still missing. Also we have to find what
to call it (atm 'Iron Man').


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12637 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-11 06:17:46 +00:00
hikerstk
820ebd2673 Refactoring: removed code duplication in some init() and restartRace()
functions of game modes (caused by restartRace only called in case of
a restart, not the first time a race is started). The function restartRace()
was renamed to reset(), which is now called always before a race is started
or restarted.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12591 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-03 06:05:34 +00:00
funto66
07c74c41b5 Merge soccer mode back into trunk - but still WIP, can be disabled via a #define in race_setup_screen.cpp
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12475 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-11 22:30:50 +00:00
funto66
6fa3ae7642 Some work on soccer setup screen + cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12423 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-26 12:54:31 +00:00
hikerstk
1254dbfa9e Bugfix: if the highscore file is invalid, a double free happened.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12408 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-22 22:14:00 +00:00
auria
996c563f9c First version of tutorial. Far from finished but you can take a quick look if you wish; the text is currently at the bottom
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12350 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-14 00:35:44 +00:00
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
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
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
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
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
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
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
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
auria
bfc1a5e14c Give nolok some special powers in the last fight against him. Changing the swatter and bubble gum to different models might help make it more dramatic of course
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11538 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 00:39:14 +00:00
hikerstk
35c7cf0848 Added first version of item avoidance to the AI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11537 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-03 22:49:30 +00:00
auria
20382c0f15 Allow a challenge to specify which AI kart to use, and use it for the final race against Nolok challenge
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11536 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-03 20:18:48 +00:00
auria
178ec7eb18 Apply patch by nathanm32292394
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11407 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-20 01:14:16 +00:00
wardje
0efce01b24 Fix bug #655 (crash when going into story mode)
Make sure the list of AI karts gets cleared by making sure
that computeRandomKartList gets executed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11342 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-28 04:00:40 +00:00
auria
dae00f0828 Add first version on intro cutscene. Still incomplete but goes somewhere :) Ask me for the menu patch if you want to look at it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11276 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-05 00:27:34 +00:00
auria
9ba0c7f137 More work to make cutscenes work
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11272 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-02 22:35:09 +00:00
auria
553385fe9d Start work to allow showing worlds without kart, for cutscenes. Does not work yet but getting closer
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11266 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-31 01:32:27 +00:00
hikerstk
5963f31079 Removed physics.hpp #include from world.hpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11213 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-08 07:07:15 +00:00
hikerstk
c15528f903 First version of demo mode. Use --demo-mode T to start
a demo after T seconds of idle time, --demo-tracks a,b,c
to specify a list of tracks to use for demo mode, --demo-karts
to specify the number of karts.
This is WIP, esp. it crashes if ESC is pressed during a race
(other keys will successfully return to main menu).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11189 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 00:10:33 +00:00
auria
b83202439c When returning to overworld, bring back player to approximately where they were upon leaving
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11067 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 17:17:36 +00:00
auria
6f58350098 Return to overworld when exiting a race if race was started from overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11065 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 15:42:44 +00:00
wardje
c4ae2d12f4 GP: not-reverse default, check if reversible
* Make it default to a track not being in reverse to not break
  older .grandprix files.
* Make sure a track really _is_ reversible to not give the .grandprix editor
  possible extra issues.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11020 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 22:51:39 +00:00
wardje
cb890d4f32 Add reverse track functionality for GPs.
Fixes part of #503 (and #599 completely).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11019 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 22:15:20 +00:00
wardje
a40462594c GP start order option to user's config + add option to have players always last
In light of #28, the GP start order option is probably more at home in a user's
configuration. While at it, also add an option to keep the player always last.
This is more of a challenge for the player than just reverse mode since your
direct opponents _will_ be at the forefront while you have to play catch up.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11017 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 16:39:32 +00:00
wardje
36cd82b0eb Fix a GP starting order bug I noticed when time was involved.
Did a GP where points didn't matter (only time) and noticed the
sorting didn't work correctly at the start of a race. Expanded
the operator< to account for time when points are equal.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11016 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 16:21:14 +00:00
auria
8dcc237c28 Fix tons of warnings when building with Mingw. Yes I know I did a few changes in bullet. I don't care, the warnings were too annoying
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11002 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-20 01:51:28 +00:00
hikerstk
ebbc1a71d8 Introduced an 'abstract kart' class, which is used to
de-couple kart implementation and its interface. This
significantly reduces compile time when changing kart.hpp,
but is at this stage still work in progress.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 20:21:11 +00:00
hikerstk
bbb0954ae8 Applied Wardje's patch to have separate high scores for reverse mode.
Thanks a lot!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10967 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-14 22:37:56 +00:00
hikerstk
629f9a27e2 Removed dependencies on controller.hpp from kart.hpp (to
reduce compile time on controller changes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-08 22:56:33 +00:00
hikerstk
bce6113fd7 Added first version of (uncompressed) replays - atm only
kart positions and rotations are saved.
To save a replay, press ctrl-F10 which will create a file
in the stk config dir 'trackname'.replay .
To replay, use --ghost command line, and select the
track with the same name (at this stage the replay is
loaded even if number of laps and difficulty is different).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-27 05:52:17 +00:00
hikerstk
579715a8d8 Merged trunk with this branch. ATM the track screenshot does not work -
I am going to fix this next.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10862 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 04:57:49 +00:00
auria
da25bc6105 Fix entering garage in a cleaner way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 01:25:56 +00:00
hikerstk
59c5537fe5 Fixed crash in case of using -N without --reverse on the command line.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10812 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-06 21:12:10 +00:00
hikerstk
648eb17e0a Added command line option for reversing tracks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10808 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 20:56:45 +00:00
hikerstk
a993cebca0 Applied first part of MCMic's patch to allow driving a track in reverse.
It adds a flag to the track.xml files, a (currently unnamed) checkbox
in the track selection screen, but doesn't do any actualy reversing (see
forum http://forum.freegamedev.net/viewtopic.php?f=18&t=2661 for
details).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 23:35:46 +00:00
auria
57b727f68d Big overhaul of challenges. Bumped challenge XML file format to version 2.0. Now each challenge file speficies 3 difficulty levels. Started adapting unlock manager for these changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10727 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-26 19:12:48 +00:00
hikerstk
a7bdb6f99a Show skidding in history replay (still no skid marks or so,
but at least the visual rotation is shown).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10708 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-23 10:37:54 +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
92b077a250 Create new world type for overworld for customized behavior. Hide overworld in track seelciton screen. Launch overworld when clicking on story mode button.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-19 02:26:07 +00:00
hikerstk
f33cdb2d17 Final fix for #528 (see also r10404): don't test
for locked karts when using --ai.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10405 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 03:49:33 +00:00
auria
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
hikerstk
2a9e76d644 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10352 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 22:27:03 +00:00
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
hikerstk
46d4fe197c Fixed history loading of steering and accelerartion for
physics replay if more than one kart is used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10343 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 20:45:55 +00:00
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
d1e132fbcb Fixed physical history replay, it appears to be bitwise identical now (#498).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10220 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-16 21:15:25 +00:00
hikerstk
7f086ded7a Bugfix: physics replay didn't work (due to incorrect sscanf format).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10202 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-14 06:05:27 +00:00
hikerstk
311fef8726 Replaying now loops back to the beginning of the recording. Note that
atm the physics values of karts (speed, suspension etc) are not reset,
which can cause difference when looping.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10201 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-14 06:04:32 +00:00
hikerstk
587084e712 Updated documentation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10176 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-13 20:54:35 +00:00
hikerstk
1f7d055fa8 Bugfix - max would get too big, resulting in out of bounds
accesses.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10158 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-10 11:57:15 +00:00
auria
d04bc58413 Quite a bit of work on Doxygen docs to contain an overview of the STK source code base
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 17:46:14 +00:00
auria
823d7ca94e Apply a slightly modified version of termina1's patch to see GP progress, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9957 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-07 23:25:02 +00:00
hikerstk
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
auria
5b3b087a03 Fixed compilation with GCC
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9382 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-29 01:40:46 +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
auria
d8815794b9 Fixed a lot of old logging code left from before the log level was a bit mask. We don't have too many log bits so atm they are classified a lot in 'misc'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9276 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-15 23:39:09 +00:00
auria
f27e3bfae4 Don't cache GP names translations so that if you switch the language they apepar in the new language
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8938 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-17 01:46:30 +00:00
auria
7572725120 Improve a bit kart selection screen bug found by KroArtem
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8890 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-12 17:35:13 +00:00
auria
d501753ef2 Clean up irrlicht includes; avoiding including the huge irrlicht.h when we only need one specific class, especially in header files; use forwards when possible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:03:28 +00:00
auria
b548b1bc93 Rename VERSIOn to STKVERSION
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8132 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:41:25 +00:00
auria
1c270cde1f Add VERSION to constants.hpp, please remove that define from Visual Studio file and autotools
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:31:29 +00:00
hikerstk
ca651b37b3 Removed all #ifdef VERSION, since VERSION is necessary to set the user-agent
for the news server, so we detect any problems with VERSION at compile time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-29 22:25:20 +00:00
hikerstk
9dbb3bad94 Removed debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8022 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-22 12:31:08 +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
hikerstk
9c2be44869 Fixed GP sorting problem - stupid typo.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-08 01:20:53 +00:00
hikerstk
ac956fdcb1 Cosmetic changes: moved minor structs into a class, added &,
renamed members to use m_ etc.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 08:45:26 +00:00
hikerstk
4d8b8e5dea Renamed ptr_vector to PtrVector so that is follows
our naming convention, also changed contentsVector
to m_contents_vector, and removed unused add method
(which is using an iterator, which would not work
when using aligned_arrays on windows anyway).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 22:20:53 +00:00
hikerstk
6676723574 Fixed compilation problems on non-windows platforms.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7581 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-02 22:26:01 +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
auria
84fcc8f1b0 Prevent some strings from being flipped twice in fribidi
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7509 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:47:39 +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
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
auria
9c3f46521e Move some code from GUI screens to RaceManager, where it makes more sense to find the said code, and correcting 2 FIXMEs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7235 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 19:25:56 +00:00
auria
6ad54434e0 Correct a few FIXMEs + minor style improvements
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7227 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 18:23:52 +00:00
auria
7a6fbbde51 Nitro target line remains on restart. Important everyone : if you find a sequence of events that causes the nitro line to remain when it shouldn't, tell me, it's hard to think of every possible case
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7201 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-31 02:24:44 +00:00
auria
5bd9afdd7f Big refactor : move a lot of strings and config files to use wide strings. For instance to be able to cope with foreign characters in player names
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7174 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-28 01:29:36 +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
47661bf772 Fixed crashes in case of FTL GP (in 2nd races no number of laps was defined).
Note that the ordering in FTL GP is still broken and can still result in crashes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7073 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-18 12:58:09 +00:00
hikerstk
fd55bc2273 Avoid crash if history.dat file can not be written; also added
2nd location to test for (where the config.xml etc files are stored)
to test, which makes history usable in standard windows installation
(where . is not writable). Fixes bug 3128511.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6938 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-10 00:04:08 +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
08b33dc2fe Fixed crash when random kart was last used and then trying to play challenges + move error messages to where they belong, no error message should be printed when doing a valid check if a kart exists
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6858 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-05 16:12:35 +00:00
hikerstk
d576dadf78 Minor code cleanup.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6712 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-24 21:04:09 +00:00
auria
f367170752 Always 3 karts on GP podium screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-29 01:39:27 +00:00
hikerstk
66259c59f6 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6104 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 10:28:30 +00:00
hikerstk
a973e8b84f Renamed all instanced of RandomKart in the race_manager to
AIKart (e.g. m_random_kart_list -> m_ai_kart_list) - since this
describes what the lists and function actually are (in network
the name is not entirely correct, but since this will be 
re-implemented anyway, we leave the proper naming till later).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6103 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 07:37:42 +00:00
hikerstk
1b1224b244 Added assert to catch inconsistent setting of number of karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 04:07:28 +00:00
auria
1c4e3f8492 Fixed crash when starting challenges. @Joerg: please read the fixme I added in RaceManager. There is some confusing design to fix there =)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6085 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 17:09:25 +00:00
hikerstk
92d18a7a25 Definitions for GP points is now independent of the maximum number of karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6021 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-16 02:31:20 +00:00
hikerstk
1ddb083b0e Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-30 00:21:04 +00:00
auria
9dfa90beed Decide smarter who won and who lost in a GP, depending on number of players
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5730 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-08 01:02:26 +00:00
hikerstk
4b50bc250a Fixed gcc compiler warning (incorrect order of initialisation).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5718 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-02 00:18:07 +00:00
hikerstk
0b35249b43 Improved new race result gui - it now consists of two parts: first
the results of the just finished race, then an animated display
of the GP standings (to test this please change the #undef
USE_NEW_RACE_RESULT in race_result_gui.cpp).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5710 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-29 23:03:20 +00:00
hikerstk
ebc4754717 Update to new race result GUI: it now handles GP and non-GP,
and 'animates' increasing the points.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5705 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-22 22:51:14 +00:00
auria
992115a9d9 Started performing API changes to support multiple GP losers eventually
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5690 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-17 18:17:15 +00:00
auria
c7ff68c1ab Modified my recent checks in highscores : on failure, ignore bogus entries instead of aborting
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5514 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-13 18:30:07 +00:00
auria
c496a82654 Removed debug asserts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5512 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-13 18:08:08 +00:00
auria
9681fa3940 Fixed incorrect string in highscore loading code that caused kart name of highscores to be lost + added assertions to detect similar problems should they ever creep back in someday
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5509 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 23:24:15 +00:00
auria
c97361058a Fixed empty highscore entries being written to the hgihscore file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5507 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-12 23:03:55 +00:00
hikerstk
dc301c1726 Removed unused code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5482 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 21:50:14 +00:00
auria
d26a2daa68 Actually show the GP lost scene when losing a GP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5460 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 23:20:32 +00:00
auria
1bdca718cb Added GP lose animation (not yet shown when actually playing, for now click on the 'network' button to see it as usual)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5454 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-30 15:45:44 +00:00
auria
803c25475f Bugfix : don't show challenges that rely on a broken GP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5408 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 17:49:04 +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
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
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
9fd06d06c1 fixed bogus code that didn't compile
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5123 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-07 12:41:35 +00:00
hikerstk
79b427ed00 Make sure that a 'Version' line is written to the history
file even if VERSION and SVNVERSION are not defined (otherwise
the history.dat file can not be read in).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5122 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-07 05:30:51 +00:00
auria
664f2984d1 Added a couple checks to the history loading code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5119 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-07 00:46:12 +00:00
auria
100e82bc88 Added a couple checks to the history loading code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-07 00:43:56 +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
939caf1981 1) Added -v X verbosity command line option, so that debug output is only printed
if an appropriat ehigh verbosity is selected. For now most debug statements 
   that are always printed (i.e. independent of user actions) is only printed
   if verbosity is >=5,  debug statement which are a reaction of a user action
   with verbosity >=4.
2) track- and gamepad-debug flags are not saved in config files anymore, made
   disabled reverse_look_threshold as default.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5063 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-24 23:52:41 +00:00
hikerstk
667b208aab Converted all kart.xml files from lisp to .xml files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5029 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-19 04:23:32 +00:00
hikerstk
b6637277ab Started re-design of stk-config file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5002 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-15 23:00:34 +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
hikerstk
b691445f15 1) Fixed bug in memory allocation (world doesn't exist when it was used).
2) Some improvements to support the old history format, but not fully working
   (and probably not needed anymore).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4967 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-10 10:16:26 +00:00
auria
0623cce462 Fixed crash at the end of a GP if there is a challenge associated to it. Also, it is now detected properly when you unlock a feature by winnign a GP (however the chest scene doesn't yet apepar)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-07 18:42:04 +00:00
auria
127d58e2dd Removed GP descriptions, they weren't useful in any way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4940 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 23:51:44 +00:00
auria
bdd985c88a Can now unlock game modes too. Centralized a couple mode-related stuff to make code cleaner with new changes. Made challenges more robust, fixes a couple crashes that could happen because errors went undetected
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 01:28:23 +00:00
hikerstk
7dd318d949 First changes to history format.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-04 12:32:26 +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
5a32323c61 Modified 'setup new race' to skip kart selection (what use is this feature otherwise...)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 20:10:43 +00:00
auria
f0b59c19b7 Added a 'loading' screen, so that the game does not seem unresponsive when loading a big track
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-23 01:00:21 +00:00
auria
5298b54770 Fixed a couple glitches in GP end screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4790 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-21 23:35:01 +00:00
auria
bbd0cf2f79 Initial work on end-of-GP
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4787 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-21 23:10:24 +00:00
auria
a148a2f46b No more crash on end of GP (nothing useful show yet)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4784 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-21 02:22:05 +00:00
hikerstk
be7b7d4b3c Bugfix: world was not deleted after a GP race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4781 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-21 00:39:23 +00:00
auria
b868909efe Some cleanups with ActivePlayer. Moved it to StateManager, because that's where active players are created and stored - this will be less confusing than hiding it inside a configuration class. More work is still to be done if we want to make this code really clean, though.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4764 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-18 21:28:32 +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
85d077ff1d Don't let the fix for a Windows warning create warnings elsewhere
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4752 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-17 16:38:46 +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
e15c217c5f Converted GPs to XML
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4737 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-16 00:33:41 +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
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
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
afeb1c95aa Bugfix: GP names were converted twice: once from the lisp reader, then again here.
Translating the name twice can result in a crash, since the gettext expects utf-8 (or
latin?) as input, but gets utf-16 in wchar, which later results in iconv not being able
to convert the utf-16 (which is supposed to be utf-8 which gettext returns if it can
translate things).



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4418 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-09 14:13:53 +00:00
auria
7d1c82d73c Fixed a lot of translation crap related to XML, hacky challenge files, no GUI, etc...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4342 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-22 21:57:15 +00:00