Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pause when braking, brake lights don't work
11-15-2006, 10:56 AM,
#8
 
Quote:After this change, the brake light comes on when I press brake. However, when I use the handbrake, the brake light stays on even I release the handbrake button. This seems to be another bug.
The cause of this bug is in Gl_Car::draw().
Code:
bool illum = false;
if (brakesetting != 0)
        illum = true;
Seems due to the keyboard control ramping, once the key is released, the final brakesetting value is not exactly 0, but a negative number very close to 0. I think the condition should be changed to
Code:
if (brakesetting > 0)
Reply


Messages In This Thread
[No subject] - by cotharyus - 10-31-2006, 01:51 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-31-2006, 10:36 PM
[No subject] - by thelusiv - 11-06-2006, 04:48 AM
[No subject] - by joevenzon_phpbb2_import3 - 11-07-2006, 01:20 AM
[No subject] - by rookie1 - 11-14-2006, 02:38 AM
[No subject] - by thelusiv - 11-14-2006, 05:55 AM
[No subject] - by rookie1 - 11-15-2006, 10:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)