-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
Decrease the distance of 'near limit' from 30cm to 3cm, which allows
all of the car interior to be viewed (without clipping).
Also prevented rear view mirror in reverse camera.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3718 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: bcbdc5169ce6bfeab0dea2d60e4fc04422187cef
Former-commit-id: 1fcf792e5c9d6e2c9cb0b8b834847b86754c0930
Added some smarts to the parameter parsing and some warning messages
for when the parameters are being fixed.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3717 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 119e440f0245403f81a6c0a93e45e64270114c4a
Former-commit-id: 3c81363b5fa8a1501650f0a7bb833db1b5f4111f
Adds a 'full screen' rear view mirror under the F2 cameras,
after 'forward road view'
Use a 'mirror matrix' to flip camera veiw Left-Right and change
the handiness of the texture render so that it shows correctly.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3715 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: b337aea683aa4bd274e0646506c4aa4082c1aa53
Former-commit-id: 12cdac00748641afeb1713d061b78b846af5e0d9
Futher restrict gear changes to prevent mis-selection when playing
with thumbstick.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3711 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: d6f0921fd456a162b4bc3a68353c69d6a0f9f019
Former-commit-id: cd7f5d586d228ba03216a8421693232c14dd3234
Adds the ability to use a joystick axis for a button type command
(for example ABS or TCS). It automatically selects between button/axis
controls in the case of pressure sensitive buttons.
Uses the ATOB prefix to signify the axis and calibration sets min/max
values. When axis is between these values command is triggered.
Assumes that each axis has a 'null' position, the 'preferences.xml'
will have to be edited if this is not the case.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3710 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: f523e7d497c0ab1bc6da35f61655141a27d0d62d
Former-commit-id: a1de88548b714aa0c562ea73ed470857077e23c8
Small changes to the joystick and mouse calibration pages in preparation
for the ATOB (Axis to Button) feature
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3709 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 420604f8954480e1506a1e1bc4aa4a155fb24a86
Former-commit-id: 37385793fb9f104ff8138eca1bc399c6e08c5140
Apply glance to other 'floating' 1st person camera.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3707 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 4a559e190f91425f821e334cb2e4c92bcf731610
Former-commit-id: 5cc79f68dab4427b7d92d0d29d94c3180d708755
Increase the angle that the driver can glance back (now 120 degrees),
and do that faster (in about 1/3s).
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3706 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 4314190159c4ece672c5acf0ee71476a1023497f
Former-commit-id: c9f3f62f19d7e9b3c0cc20c45fadcb3227cdb2a4
Add supports for the driver/view to glance left/right from the in
car camera. This is bound to two buttons, which cause the glance
when held down. When released the view returns straight ahead.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3705 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 0727b1bbcc8341eee017b1df9af43905f6bcc8b8
Former-commit-id: 63d32fcc46f9158569be1605ef00e89a28d16970
Attempt to smooth out the scrolling of the leader board (across bottom
of screen). This uses full string printed at offset rather than cropping
characters from the string.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3704 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 589ac19eaeaffe1f92c3a2b11ed35a250256d5b9
Former-commit-id: 807a165bbec6f509fdf1f2f100a46fa6c5e5e7b4
This patch adds a 'scissor' to each of the split screen panes, preventing
them overwriting/overlapping on the otherpanes.
It seems that normally this is not an issue, but is showing with the
Nouveau community drivers and there are lots of comments online that
glViewport does not crop.
Patch is nice and simple...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3703 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 3a531abf769acc60ff05e828b5c3d8d942d3ba22
Former-commit-id: ff5389d4f3708f5e40af765a8053574777202c5e