Re #735: make r5384 work with human robot
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5385 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: ea8bbe40aae3755c301f5e797f60ae921263fb83 Former-commit-id: a04919d955326f46f2ccd36d872ba4ad8e01513b
This commit is contained in:
parent
fc7fd2b15e
commit
5070b294d0
1 changed files with 4 additions and 2 deletions
|
@ -725,7 +725,9 @@ common_drive(const int index, tCarElt* car, tSituation *s)
|
|||
|
||||
GfScrGetSize(&scrw, &scrh, &dummy, &dummy);
|
||||
|
||||
int oldgear = car->_gearCmd;
|
||||
memset(&(car->ctrl), 0, sizeof(tCarCtrl));
|
||||
car->_gearCmd = oldgear;
|
||||
|
||||
car->_lightCmd = HCtx[idx]->lightCmd;
|
||||
|
||||
|
@ -1479,7 +1481,7 @@ drive_mt(int index, tCarElt* car, tSituation *s)
|
|||
|
||||
common_drive(index, car, s);
|
||||
|
||||
car->_gearCmd = car->_gear;
|
||||
//Can it be left out? car->_gearCmd = car->_gear;
|
||||
/* manual shift sequential */
|
||||
if (HCtx[idx]->transmission == eTransSeq)
|
||||
{
|
||||
|
@ -1664,7 +1666,7 @@ drive_at(int index, tCarElt* car, tSituation *s)
|
|||
/* shift */
|
||||
int gear = car->_gear;
|
||||
gear += car->_gearOffset;
|
||||
car->_gearCmd = car->_gear;
|
||||
//can it be left out? car->_gearCmd = car->_gear;
|
||||
|
||||
if (!HCtx[idx]->autoReverse) {
|
||||
/* manual shift */
|
||||
|
|
Loading…
Reference in a new issue