Back to raceline only after initial start run.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3816 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 57995c9d29d46d9a37fdff3fce5ce826191ce096
Former-commit-id: b98eefde2b32188fb58fec83451247b150dc4771
More correct function naming.
Use GetOppByState instead of looping.
Use predefined constant START_TIME.
Filter acceleration.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3815 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 5e59e79bfae989f170049a6bfd0ee77cf91cd902
Former-commit-id: 6eda13397b2aa889e16c19f41f48c50fc69db0d9
Remove various network game files from the Official install
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3811 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: b4efbdbd0dd9c3458a2df8d1dfada5127820cd8c
Former-commit-id: 00fbbc164c2372b0d66af90a771cbd17c25091e1
Fixes the upside down background when the screen ratio is very wide
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3806 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: bd16f23cd38da6bead7caee870e132143dc5e34d
Former-commit-id: 1fa18728f196a9df36730b9775462e6396fba0eb
When auto-reverse is selected reverse can/will be selected if the car spins
this makes recovery difficult.
This patch fixes it so that the 2D speed is used to gate reverse, since the
sqrt(x^2+y^2) is used multiple times it also pre-computes this and stores as
an addition variable. This can/should be used by other functions.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3804 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: beb7b643361d78143e7d3f1b9891bc15dc4015a1
Former-commit-id: 0110389e97e4550dba6e509e26bd19263753f641
Mirror the (simple) background on the reverse facing camera
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3795 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 651084b955156be8b8d90a497c9b599d20dd7f00
Former-commit-id: c194d323d189677094e1ecfeef59a7eed858ad43
Adjusts the rear view mirror width so that it matches selected
boardWidth
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3791 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 17d42aac39db11df085cdd8161c3225486679334
Former-commit-id: 57dfdf52befb01aa3d6db1d56280a8cd3afd401f
Add filtering so only humans get the message and limit update rate to 2s
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3777 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: b408a8c0e2fbf7d035cea5c8d46ef8c4816b1c33
Former-commit-id: 179e1ee51ddfeb7b22d5de12f2d7efca84460dd9
Patch from "rcrdo", attached to ticket.
While I did not see any bad effects testing with simuv2.1,
he spotted it malfunctioning with simuv3.0.
Test needed.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3774 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: e6ab674c4effbd49ef2f64768de8798fe5716156
Former-commit-id: 9c7a1b2de0ed7ba8d80f35e7abfd093de9ffcd6b
-Use fallback mechanism to get cartype anyway.
-Add front wing effect in CA.
-Take fuel consumption factor into account.
-Naming consistency.
-Move unstuck code in separate function.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3772 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 390973380319117762cdec8a7c9824eb76dc7e2c
Former-commit-id: 3a095e97cd3c65ea4f31f5382504fd940a394b65
On loading a track, we calculate the straight segments angle's
sine and cosine, so we don't have to do that each time in the RtTrack*
functions.
The changes are introduced in track3.cpp and track4.cpp only, as
older versions are not used in SD.
tTrackSeg struct was added 2 new members, called sin and cos.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3761 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 252a40dcb7aa2459c17c66e525a5ad25409316c1
Former-commit-id: 9a169e43c5b6ed27d99e427bc1863ed461f5b44c
Add a speed threshold to prevent the 'Wrong Way' message for stationary
cars (for exmaple when they are 'lifted out' due to damage).
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3756 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 804108e4513edd057bfd7306b6cd2e8345d5990d
Former-commit-id: 5b63f248920fb7d58e830cb6a480e5002d6e84a3
Implements a 'Wrong Way' message if the car travels the wrong way
for more that 5s
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3754 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: d78d32fb3d91f2e1cc560c862ff92542ae356b22
Former-commit-id: 920884bcfabace159ffe413c5e096b8e275dd4b5
After some thought I'm putting the 'unset' min/max back so that it
matched the parameter value.
With the other changes made this does not show the original bug
(of different left/right behaviour), and I don't want to break things
in the parsing/checking of fixed values - such as categories only
allowing 4 cylinder cars... etc...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3751 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 19661d02c803779c1c1b29c991351af8ba6eea53
Former-commit-id: ddbb66625204c2a4129d96bb7482441cf553e303
Tidied the Joy2But calibration menu a bit to make it easier to use
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3750 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 935ea5656508711f3860948f24a8a35dbabc2679
Former-commit-id: c0bbe1e117ddd49ec82efb9ece59d262bf81e45c
USR robot switches on all the head & rear lights at the race start,
and leaves them on all the way.
TODO: switch on small lights only in the pitlane.
TODO: switch off all lights when out of race.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3748 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 15e95db682b09dc02ba74b2b173cc50501ea14ed
Former-commit-id: 715bc8f151cc8136bc1e062b500edf757ff98b79
Fix speed-correction so that is does not alter when car is spinning, should
make recovery easier.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3745 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 115b547408ec4df32c3bef3fa62a609a4c00d2dd
Former-commit-id: 1212a96a791576381ae2ccf26feff6abe5099003
Abused the pow variable to indicate the polarity of the turn direction
so that the deadzone can be correctly applied.
The joystick stuff now passes 0-1 to either left/right turn, which is
the scaled according to the Pow and Speed sensitivity. There the scaling
is the same regardless of configure/range/deadzone.
Might be worth doing the same for the mouse.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3742 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 2b5844a16c2160852f53ccdba4e6a58f25c69747
Former-commit-id: 05fff01eaa715c0e187e6f45e191f65de66e6181
Added extra parameter to allow either or/both Neutral & Reverse in sequential
shift mode.
Even if commands set for Reverse/Neutral shift will shift out of Reverse for
better games play (ie. R->1 when you're in a panic to go)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3738 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 049116084cf8f199e1eec15497cfdd63ea41168d
Former-commit-id: 71de2a5365ee59969d846cf5fefbbe984e9818ee
Made use of MIN/MAX functions.
Re #307.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3733 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: c7a6479372bbea1f2d75ec589283206ff9478915
Former-commit-id: 1b5b7b5969ea37e4f07cf48c730fbdbb4cda9924
Patched to allow more than one human to compete in the Championship
races (ie. split scree).
Correct check whether the end of a practice session is a 'timed session'.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3722 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: f6fa13bb5f7c7dab6c244e59c5ceb7a9c4ee7dad
Former-commit-id: 18ee2de7624cb6ca398d1f65b7f83b566f046fdc
Ensure the autoclutch fully engages the clutch, linear decay
from maximum time.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3719 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 97fccc524ceddb98e51339bae9a3548d7348c85e
Former-commit-id: 74fc243b958d401ba6b6e50f1c31b3f8514d9e4e