617 autoclutch not active when no clutch defined
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4517 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 87120f9b22a982569a4d34dc542c6ffed705cbf9 Former-commit-id: 17fcb727b324908b5f54c81d2d0f057eaaadecd0
This commit is contained in:
parent
b284b17bdc
commit
377f892046
1 changed files with 2 additions and 7 deletions
|
@ -534,15 +534,10 @@ newrace(int index, tCarElt* car, tSituation *s)
|
|||
HCtx[idx]->driveTrain = e4WD;
|
||||
}//if traintype
|
||||
|
||||
// Determine cluch mode : auto or "manual" (footual ;-?).
|
||||
// Set up the autoclutch
|
||||
tControlCmd *cmd = HCtx[idx]->cmdControl;
|
||||
if (cmd[CMD_CLUTCH].type != GFCTRL_TYPE_JOY_AXIS &&
|
||||
cmd[CMD_CLUTCH].type != GFCTRL_TYPE_MOUSE_AXIS)
|
||||
HCtx[idx]->autoClutch = true;
|
||||
else
|
||||
HCtx[idx]->autoClutch = false;
|
||||
|
||||
// Set up the timing for the autoclutch
|
||||
HCtx[idx]->maxClutchTime = GfParmGetNum(car->_carHandle, SECT_GEARBOX, PRM_SHIFTTIME, (char*)NULL, 0.2f);
|
||||
switch (car->_skillLevel) {
|
||||
case 0: // Rookie
|
||||
|
|
Loading…
Reference in a new issue