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
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
* 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
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
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
* 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
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
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
* 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
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
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
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
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
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
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
* Fixes minor bug where incorrect internal name was set to the listitem.
* Moves refreshing of player list to its own (private) function.
* Also a small indentation correction in accordance with the style
guide, which sadly makes for a big heap of recompiling.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11322 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Greatly upping time for both. Probably still too fast for actual
beginners.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11321 178a84e3-b1eb-0310-8ba1-8eac791a3b58