Commit Graph

8190 Commits

Author SHA1 Message Date
auria
f42e65b792 Add forgotten sound
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11418 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-21 19:12:21 +00:00
auria
bca64b728c Update to intro cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11416 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-21 19:02:00 +00:00
auria
8760f28450 Change particle emitters into track objects so that they can be animated. I think I also fixed a few relatively minor leaks along the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11415 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-21 02:05:51 +00:00
stephenjust
f766785302 Add rating to add-on info dialog.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11412 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-20 22:48:37 +00:00
stephenjust
1fd75915a9 Add x64 configs which I've been using to the VC10 project. Need to compile 64-bit dependencies to use. Shouldn't affect normal 32-bit compilation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11411 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-20 22:17:45 +00:00
stephenjust
27a2e6902d Add support for hiding add-ons which are marked as being present in the current version of the game.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11409 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-20 03:40:16 +00:00
auria
aa2f831ca0 Remove ugly shader hacks that are no more needed (and now even harmful) with latest irrlicht svn. You will need to update irrlicht
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11408 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-20 02:01:10 +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
hikerstk
c380c80358 Fixed typo (only when using new algorithm), and added
#undef for 'NEW_ALGORITHM'.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11406 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-19 07:02:45 +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
hikerstk
e58377b1ca Only dislay name if the debug camera is not used (otherwise
the name will make the karts impossible to see).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11404 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-19 06:55:32 +00:00
wardje
790f1b2bde Fix #671 - DemoWorld idle timer reset.
Fix the issue at the source. Instead of only reacting on GUI events,
catch GUI, mousy, key and joystick events and reset the timer on any
of them. Only then we're sure that mouse/keyboard/joystick movement
definitely resets the timer.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11403 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-19 04:40:23 +00:00
wardje
6708d2c31e Cleanup moving window & giving class hints
* Add a function to irr_driver to move a window to (x, y)
 * Use this function in initDevice and move the call to later on it.
 * Also move the Linux WM classhints down a bit


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11402 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-18 02:45:34 +00:00
hikerstk
ff6abc1c59 Fixed incorrect lap counting (when using the shortcut), caused
by left-over lap-lines.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11400 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-18 01:10:53 +00:00
auria
e774550ee2 Fix zippers in jungle
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11399 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-18 00:34:20 +00:00
wardje
f0f537700c Fix #676 - memory leak of IReadFile, by nathanm32292394
Reference to a, through IrrLicht, opened file wasn't getting closed.
Use IReadFile::drop() (derived from IReferenceCounted::drop()) to fix
this severe memory leak.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11397 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-17 02:17:48 +00:00
wardje
41b47718a1 Fix minor memory leaks, by nathanm32292394 - #676
* delete star effect in kart destructor
 * clean up challenges in gameslot destructor
 * music information's normal and fast music


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11394 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-16 22:36:47 +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
auria
cba46818f8 Update xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11391 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-14 20:01:13 +00:00
hikerstk
9a823b64b0 Removed dead code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11389 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-12 07:05:02 +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
7a8b27ae76 Prevent usage of AI debug when DEBUG is not defined. Disabled AI
debug as a default.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11387 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 23:15:50 +00:00
hikerstk
c592be45df Instead of computing two different radius, detect if the kart
is not facing in the right direction (and if so, brake to allow
it to quicker get facing in the right direction again), and
only compute the turn radius otherwise. Print some useful
information when --ai-debug is specified, atm when and why
a kart is braking.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11386 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 23:05:16 +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
hikerstk
810586ff09 Added --type [0,1,2] command line option to allow setting the race
type (0=normal, 1=time trial, 2=FTL).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11384 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 22:02:56 +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
hikerstk
cebae627c8 Keep track of all predecessor of a node, not only the first one.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11382 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 06:48:31 +00:00
hikerstk
e0c8652d89 Cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 06:42:47 +00:00
wardje
f26a34647e Fix #647, again
Didn't take into account the lack of optionsscreen teardown when
storymodelobby gets called up at STK startup (had it disabled).
Creating slots and saving the configuration immediately when entering
a player name now.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11377 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-08 23:35:18 +00:00
wardje
9d664e1fc7 Fix #662 (classhint setting now checks for graphics)
Linux classhints didn't take into account graphics not being
present. Add a check whether ProfileWorld is running without
graphics.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11375 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-08 16:29:50 +00:00
wardje
36ce4c63f4 Add challenge file for black mansion
* Requirement set to 0 until there's a structure in the order
   we want challenges to be completed.
 * Times based on a few rounds without cheating[1]

[1]: You can cheat in Black Mansion by just going straight ahead
     in the hill after the start.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-06 19:29:48 +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
c11fdc0bd8 Removed debug code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-06 02:05:37 +00:00
hikerstk
57c68cc9ea Fixed help message which was partly deleted.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11369 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-06 01:58:40 +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
hikerstk
c311cf937c Updates VS 9 project file to include new cutscene files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-05 22:13:36 +00:00
wardje
af0d1528ba Fix incorrect attributes in track info dialog
* "min" changed to "min_value"
 * "max" changed to "max_value"


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11366 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-05 21:29:44 +00:00
hikerstk
92538784b1 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11364 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-04 01:38:32 +00:00
stephenjust
826cc8b18d Update VC10 files
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11362 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-02 20:46:28 +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
hikerstk
7e52b5f381 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11360 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-01 21:13:58 +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
1574ff472d Add specifying SFX rolloff type
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11356 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-30 18:49:35 +00:00
auria
c77be89a27 Improve error message when a driveline is missing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11354 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-30 15:04:05 +00:00
auria
635ef93d8b Updated version of the intro cutscene. Say hello to Noloks's ship\! Needless to say there are still quite a few known glitches
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-30 00:38:10 +00:00
wardje
b5c560c1e5 Minor styleguide updates
* Fix indentation
 * Correct comment


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11347 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-29 14:53:28 +00:00
samuncle
f5c431da84 Remove old file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11346 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-29 14:17:47 +00:00
wardje
2ec6335bdd Add Ward Muylaert to credits (programming/bug fixes).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-29 00:07:10 +00:00
wardje
27b62bddf2 Removes duplicate content in header file.
Content in the header file of the PresentAI was duplicated.
Removed one of them.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11344 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-28 23:07:52 +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