Commit Graph

7979 Commits

Author SHA1 Message Date
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
magned
1b8929a169 Remove obsolete license info from the COPYING file as per qubodup's forum suggestion
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11337 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-26 21:14:06 +00:00
mbjornstk
772d9df1d6 Add cutscene_gui.[ch]pp to build system (and sort arenas_screen.[ch]pp).
Also fix their EOLs (mixed!?) and set the property to avoid that in future.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11335 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 22:42:10 +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
wardje
2442f3b3a3 Set window manager class hints in Linux.
Class and instance set to "SuperTuxKart".


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11333 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 16:45:01 +00:00
wardje
3b4b1a6e30 Add cutscene_gui.[ch]pp to cmake build system.
Fixes compilation.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11332 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 16:40:08 +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
wardje
1caba55886 Remove gameslots when they don't have a player
Gameslots were not getting removed when players got removed. Add a check
when the player options screen gets torn down.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-22 17:57:22 +00:00
wardje
97c5153832 Tentative fix for #647
Fixes #647 (crash when trying to use a newly made player), doesn't feel
too clean though this way. Possibly better to immediately adjust (and
save) the gameslots instead of waiting for the options screen to get torn
down.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11323 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-21 21:00:11 +00:00