From: Speed D. <no...@so...> - 2013-11-16 15:33:51
|
#854: Sequential gear shifting - gear stuck -----------------------------------------+---------------------------------- Reporter: ocirne94 | Owner: somebody Type: defect | Status: new Priority: critical | Milestone: to be defined Component: Robots | Version: 2.1.0-dev Keywords: sequential gear shift stuck | -----------------------------------------+---------------------------------- r5733, Kubuntu 12.04. When driving with sequential gear shifting, if the player has the highest gear and hits the up-shift button the gear gets somehow stuck: to down- shift, it will require to use the down-shift button TWICE. If the up-shift button is pressed two times, the down-shift will need to be pressed three times, etc. The problem is in robottools/rthumandriver.cpp:1633: if (car->_gear > -1) car->_gearCmd++; This doesn't check if the top gear is already in; because there are no gears after the top one, it doesn't up-shift (it doesn't even show a different number in the cockpit); but it sets car->_gearCmd to 1 (or more) above the top gear, so that to get down from there the player has to activate the down shift a number of times. The simplest fix is to change the conditional statement to if (car->_gear > -1 && car->_gear < car->_gearNb - 1) Checked and working. -- Ticket URL: <http://sourceforge.net/apps/trac/speed-dreams/ticket/854> Speed Dreams <http://sourceforge.net/projects/speed-dreams> An Open Motor-sport Simulator featuring high-quality 3D graphics and an accurate physics engine, all targeting maximum realism as well as exciting new features, cars, tracks and AI opponents to make a more enjoyable game for the player. |