determineTrackDirection, handleCurve, doSkid (the latter
was already implement, but didn't do anything).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11445 178a84e3-b1eb-0310-8ba1-8eac791a3b58
press skid while still turning in the opposite direction
(due to the delay with which the turning reacts). Therefore
skidding is only triggered when steering has nearly reached
full left or right (this code was by accident removed in
a previous commit).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11444 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Sorry for the big recompile because of it, had some of these
after some experimenting and it was clouding my svn diff.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
quite stupid, but can sometimes compete with the old AI (unless
the new AI is behaving stupid ... as I've said). This is still
disabled by default (and if you want to test it, make sure
to adjust stk_config.xml as well).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11438 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Was needed because of some outdated attributes and the like.
This is the "630.7z" patch from the bug report, simple copying
over of the files. Jungle was left out because it has changed
in the repo since the patch got sent in.
Tracks:
* Battle Island
* Shiny Suburbs
* Bovine Barnyard
* Fort Magma
* Hacienda
* Old Mine
* Minigolf Mischief
* Oliver's Math Class
* Scotland
* Northern Resort
* Zen Garden
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11436 178a84e3-b1eb-0310-8ba1-8eac791a3b58
better seen (esp. in camera debug mode when the drivelines are
higher than the track).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(since this indicates an invalid position, and it would appear
like saving the position doesn't work).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11433 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Computerfreak97 had a go at this about a year ago, but the
implementation was flawed.
* Randomization was still being reset later on (`reset()`)
* Only physics were affected, not graphics
Implement it by randomizing at the start as well as adjusting
`KartModel::update()` so that it not resets the random values.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11429 178a84e3-b1eb-0310-8ba1-8eac791a3b58
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
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
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
* 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
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
* 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
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