Commit Graph

632 Commits

Author SHA1 Message Date
hikerstk
9860f5f576 Moved call to RaceGUI::init out of world::reset to avoid
duplicated thunderbird: reset is called each time before
a race is (re)started, while an init function must only
be called once. This properly fixes #918 (referees not
removed), which was caused by init actually being called
twice. Also changed order of when the referee position
is computed: before it was computed before World::resetAllKarts
was executed (which settles the karts at their stable start
position). This resulted in slightly different start 
positions (depending on positions set in blender, not
the position in which the kart were finally stable. This
fixed #917.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12664 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-16 11:37:25 +00:00
hikerstk
eb004a63a6 Updated source list, and fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12612 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-05 12:31:14 +00:00
auria
61720b2661 Add back ability to programmatically add track objects, use it in 3 strikes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12610 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-05 01:30:34 +00:00
auria
94cd32d20d Do not stop music during tutorial
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12607 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-04 23:14:52 +00:00
auria
3cd4cc1cad Fix reading freed memory after deleting world, plus add what it takes to detect further such issues easily
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12606 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-04 23:09:53 +00:00
hikerstk
f4b121feff Fixed incorrect arrival time estimation (#903 and #859).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12601 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-04 21:17:39 +00:00
auria
bc1d1e7d31 First part of track object refactor
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-04 01:15:37 +00:00
hikerstk
cc6446cd1c Removed unused files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12595 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-04 00:42:26 +00:00
hikerstk
8fe1875db1 Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12594 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-04 00:41:34 +00:00
hikerstk
9429beef79 Simplified more code, fixed some coding style.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12593 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-03 21:15:13 +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
hikerstk
f857393ca2 Removed time limit from easter eggs (if used in a challenge, the
challenge will define the time limit), which also fixes #861 (no
timer when easter egg mode is started first). Added high-scores for
easter egg mode.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-25 06:16:23 +00:00
hikerstk
5445cec7ba Enabled motion blur shader in split screen multiplayer.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-14 21:04:48 +00:00
hikerstk
62ea0bbbe0 Fixed various compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12542 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-06 23:12:24 +00:00
hikerstk
502042432c Big refactoring: the camera for a kart is now not part of the
kart anymore, instead they are managed by static functions
in Camera. This allows us to have several cameras for one
kart now (can be useful for debugging; or for three-screen setup
where you have one monitor for left, right, and center; or potentially
for an back mirrir). Also 'rain' is moved into camera now (where it
belongs more naturally then in kart), and several loops over all
karts searching for a camera are now replaced by simpler loops over
all cameras (though a few loops were added to handle code for all
cameras now, while before there as no loop).
Main advantage: handling post-processing will be easier to do now.
Also this fixes a bug: in split screen mode, when a kart is eliminated
(ftl) the camera for this kart was supposed to show the
leader facing backwards, which didn't work (it just showed the previous
location of the elimintaed kart) - now it works.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12541 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-06 22:08:41 +00:00
hikerstk
e1033ca9f7 Started to restructure rendering loop - moved things out of rendering
loop, cleaned up code, ...


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12531 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-28 01:05:27 +00:00
auria
6147636454 Add tutorial to overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12487 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-16 00:52:28 +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
auria
a81fe6fbae Delete old unused file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-03 22:31:24 +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
auria
4dc3589086 More tutorial work
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12388 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-19 00:46:03 +00:00
auria
c44dbf4214 Work on tutorial
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12373 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-17 02:20:12 +00:00
auria
14c058a311 Work on tutorial
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-17 00:58:40 +00:00
hikerstk
9c0e002f0a Fixed 'No newline at end of file' warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12362 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-15 06:28:41 +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
45790c0db4 WIP soccer mode GUI setup screen, don't draw player icons when in soccer mode, painted soccer cages in blue and red
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12346 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-09 21:32:43 +00:00
hikerstk
20bb783219 Fixed rescue (which I broke in r12281 - sorry).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-02 11:37:29 +00:00
funto66
be5f3e47e9 Fixed crash when playing soccer with a minimap (thanks WillemS for the bug report) + fixed tracks screen displaying soccer field when it shouldn't
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12317 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-29 17:44:56 +00:00
funto66
cd28f9128a Now teleporting the soccer ball at its start position when scoring a point
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-28 14:11:33 +00:00
funto66
e16c03edf2 Added a special type of tracks for soccer arenas
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12300 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-22 22:33:15 +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
auria
2ce395ba0d Don't hardcode player ID
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12220 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-09 22:14:27 +00:00
hikerstk
02b730b3e5 Fixed engine sfx in overworld.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12217 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-09 12:36:37 +00:00
hikerstk
d77471b446 Refactored information exchange between modes and race GUIs:
instead of each mode maintaining an array of data for each kart
which is used by the race GUI, use one array in race_gui_base,
which is then filled by the game mode.


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


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12104 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-29 11:59:33 +00:00
hikerstk
db0303146d Added additional debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12089 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-26 10:14:53 +00:00
hikerstk
36a15015d8 Fixed #806: clicking on challenges in overworld did not
teleport karts anymore.


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


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12055 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-23 13:13:38 +00:00
auria
570546e5cb Don't pause music on overworld when opening challenge dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12046 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-22 01:07:09 +00:00
hikerstk
1822c7e266 Fixed crash in demo mode when demo mode is started while 'internet yes/no'
dialog is shown (or the track info dialog). Together with r11958 this fixed
#663.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11960 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 12:39:56 +00:00
hikerstk
8fa7b8a0d0 Avoid crash in case of problems with sound.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-15 02:04:03 +00:00
auria
6325e02b16 Fix pressing escape in kart select screen gonig to overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11948 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-15 00:09:36 +00:00
auria
7195131d14 Apply patch by Steel to make sure giving up a race can't give you a highscore or challenge
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11762 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-25 23:17:10 +00:00
hikerstk
cfb77ac6e4 Removed old default and present AI (which do not support new skidding).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11752 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-23 21:46:44 +00:00
hikerstk
7d33125f54 Mostly cosmetic change: renamed RD_EASY etc to
DIFFICULTY_EASY to make it easier to understand;and
removed separate DIFFICULTY_COUNT constant and
replaced it with an entry in the enum (this means
one less change if a difficulty is added). 
Changed layout to be closer to our style in race_manager.hpp.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-21 23:06:33 +00:00
hikerstk
68711524bf Fixed compiler warnings and comments.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11732 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-21 23:03:08 +00:00
hikerstk
ebfd22b480 Added files missing in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11683 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-14 22:23:07 +00:00
auria
a8adde409d Overworld : honor music disabled flag
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11674 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-12 23:01:59 +00:00
auria
dab73fa8cf Make overworld play its music
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11672 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-11 21:47:50 +00:00
hikerstk
669e18be67 Renamed getFloatTimeSincEpoch into getRealTime (since this time
does not need nor is based on a fixed epoch). Changed getTimeSinceEpoch
back to the previous implementation which returns time in seconds since
1.1.1970 - this is important to compare addon download time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11657 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-02 07:17:28 +00:00
hikerstk
463088f022 Fixed another compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11653 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-01 02:58:01 +00:00
auria
72d9c64430 Fix bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11652 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-01 00:11:47 +00:00
hikerstk
92c18c2432 Fixed more compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11650 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 23:31:00 +00:00
hikerstk
72d856dc03 Fixed various float vs double compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11649 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 23:28:09 +00:00
auria
d92a5b1ba1 Make getFloatTimeSinceEpoch more precise to bring back smoothness during cutscenes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 22:24:41 +00:00
auria
a582ab9265 Improve cutscene synchronization (survive hangs)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 21:43:50 +00:00
auria
5a4f767403 Add special escape-menu on overworld, and make Nolok's bubble gum swapper-proof
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11635 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-29 22:46:29 +00:00
auria
48d480a67d Add tricks I hope help dramatically improve the synchronisation between the STK physics and irlricht animations in cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11633 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-28 01:52:09 +00:00
auria
f687659929 Try workaround for #700
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11629 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-22 18:37:47 +00:00
auria
bdf50e6ae2 Fix bug over previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11597 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 22:59:37 +00:00
auria
6c81939430 Intro and end and now for real\! Intro will play once the first time you play, and end plays after you beat nolok
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-18 22:50:44 +00:00
auria
30d75a957a Improve Nolok'as special abilities a little, and switch to the end cutscene after beating him, then after that go to credits. This gives a reasonable ending i think :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11580 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-14 00:03:38 +00:00
hikerstk
8a2c1b466d Fixed memory leaks in case of --no-graphics (just to reduce
unnecessary output of LeakCheck).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11573 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-09 23:45:56 +00:00
hikerstk
e58d0139b1 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11567 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 06:13:46 +00:00
hikerstk
d73b69ab09 Count how often a kart is off track for profile statistics.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11558 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 05:48:01 +00:00
hikerstk
42b9550373 Added stats output sorted by controller groups (useful to compare various
AI controllers).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11553 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 00:43:26 +00:00
magned
0aa7494469 Enables both new skidding behaviour and new skidding AI. Disables old sharp turn behaviour and PRESENT_AI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11533 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-01 22:45:07 +00:00
auria
fe65f46035 Work on end cutscene. Code to start particles based on a condition
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11516 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-23 01:52:55 +00:00
hikerstk
e467e711fb Disable new skidding AI, which was committed accidentally.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11504 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-13 01:09:25 +00:00
auria
81966f33d6 Pressing escape cancels both parts of the cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-13 00:25:30 +00:00
auria
cd0ba32a65 Play the 2 parts of the intro
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11502 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-13 00:23:18 +00:00
auria
f6c89a20be Make sure subtitles are properly synchronized
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-08 23:59:28 +00:00
wardje
361d2362fa Fix parentheses warning and an outdated comment
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11478 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-06 16:54:36 +00:00
hikerstk
203ae69ce6 Added support in MaxSpeed for an additional engine force
to work while a speed increase is active. This simplifies
existing code (for slipstream, nitro). Additional engine
force is also added for skidding, which should make 
skidding more worthwhile (since usually adjusting the
heading when stop skidding will use up the actual bonus
speed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11450 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-29 23:46:16 +00:00
auria
5f0f8e0346 Make gnu stop playing flute when he's abducted
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11449 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-29 19:16:59 +00:00
auria
1ae417fcb2 Fix pressing on escape multiple times resetting the fadeout in cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-28 00:29:45 +00:00
auria
65d897915a Manually implement muting sounds when too far since OpenAL doesn't seem to have that feature, and use it to finally make the spaceship sound in the intro work
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 20:05:38 +00:00
hikerstk
3ec6682fb4 Added alternative implementation of findNoNCrashingPoint
which should be faster and 'more correct' (the old implemenation
only tests discrete points for being on/off track, which means
AI can cut corner and not realise that it will be off track).
The new implementation uses lines and intersections to detect
this condition correctly. Since the new implementation is
as a result not as aggressive in cutting corner, it's not
as fast as the old AI, and is for now disabled (see end of
SiddingAI::handleSteering if you want to switch).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11405 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-19 07:00:57 +00:00
wardje
22d2b58112 Fix #664
After DemoWorld finishes/gets aborted, the static variable in ProfileWorld
would still be set to profiling, indicating that profiling still had to
be done. This caused troubles with trying to race after the demo had run
at least once. Any started race would be seen as profiling.

Simply deactivating profiling when ProfileWorld gets destroyed does the
trick.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11392 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-15 04:09:00 +00:00
hikerstk
8b5ee80e55 Count braking in profile mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11388 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-12 07:04:01 +00:00
hikerstk
a5b96fce32 Bugfix: 'turn' could become >3.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11385 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 22:07:35 +00:00
wardje
b3f190636b Correct track choosing logic in demoworld
* Overworld could be picked
 * If user gave one arena track as choice, things would crash

Also fix some comments.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11383 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 20:42:45 +00:00
wardje
4a29403df6 Correct persistent typo
Someone had, at some point long ago, written warp instead of wrap.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-06 03:53:38 +00:00
hikerstk
b3c0eeab80 Skidding AI now estimates the turn radius of a curve, and is
able to brake if it should be too fast. Avoid using nitro
when braking (otherwise AI might be pushed out of curve).
Added new --ai-debug command line option that will display
the name of the AI on top of each kart (when compiled with
debug). See world.cpp lines 249 on how to select the new 
(or any other AI, including the option to use all AIs,
which is nice to compare them).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-05 22:37:57 +00:00
wardje
7b5d9e50a4 Fix two compiler warnings
* cutscene: comparison between unsigned and signed int
 * graph: simplify the comparison being made


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-02 19:11:12 +00:00
auria
4cb8ba7e50 Start work to support moving sound emitters. Doesn't quite work yet, don't know why' :(
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11357 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-30 19:15:12 +00:00
auria
137600a5f0 Add the capacity to show subtitles in cutscenes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11334 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 17:14:34 +00:00
auria
4186cd6a83 Add fade-in/fade-out support to the cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11331 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 15:38:17 +00:00
auria
e3283be6f0 Fix unsmooth camera movement in the cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11330 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 15:02:50 +00:00
auria
6147c887a9 Allow skipping the cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11329 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 01:39:49 +00:00
auria
3901ea9840 Continue after cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11328 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 01:22:42 +00:00
auria
6a12217b10 Fix compilation for non-C++2011 compilers, oops
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11319 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-17 22:42:33 +00:00
auria
92385e68e5 Fix compilation for non-C++2011 compilers, oops
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11318 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-17 22:33:30 +00:00
auria
aced31cbfa Add support for playing sounds at given points during the cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11310 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-16 23:35:51 +00:00
auria
cff2dd75bc A few audio adjustments for intro cutscene, and now play the scene when playing on the story mode button (sorry story mode will be unavailable for a little while, but you can comment out the sdebugging code that launches the intro)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11306 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-16 19:41:21 +00:00
auria
86e346daeb Instead of harcoding where the camera looks during cutscenes, import it from blender. Unfortunately this makes the camera jumpy, not sure why?
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11302 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-16 17:41:34 +00:00