control: tags -1 patch the following patch (stolen from adios similar patch) should fix the issue: --- torcs-1.3.3+dfsg.orig/src/modules/simu/simuv2/simu.cpp +++ torcs-1.3.3+dfsg/src/modules/simu/simuv2/simu.cpp @@ -67,7 +67,7 @@ ctrlCheck(tCar *car) if (isnan(car->ctrl->brakeCmd) || isinf(car->ctrl->brakeCmd)) car->ctrl->brakeCmd = 0; if (isnan(car->ctrl->clutchCmd) || isinf(car->ctrl->clutchCmd)) car->ctrl->clutchCmd = 0; if (isnan(car->ctrl->steer) || isinf(car->ctrl->steer)) car->ctrl->steer = 0; - if (isnan(car->ctrl->gear) || isinf(car->ctrl->gear)) car->ctrl->gear = 0; + if (isnan((double)car->ctrl->gear) || isinf((double)car->ctrl->gear)) car->ctrl->gear = 0; #endif
/* When the car is broken try to send it on the track side */ cheers, G-
Description: fix build failure with glib 2.23 Author: Gianfranco Costamagna --- torcs-1.3.3+dfsg.orig/src/modules/simu/simuv2/simu.cpp +++ torcs-1.3.3+dfsg/src/modules/simu/simuv2/simu.cpp @@ -67,7 +67,7 @@ ctrlCheck(tCar *car) if (isnan(car->ctrl->brakeCmd) || isinf(car->ctrl->brakeCmd)) car->ctrl->brakeCmd = 0; if (isnan(car->ctrl->clutchCmd) || isinf(car->ctrl->clutchCmd)) car->ctrl->clutchCmd = 0; if (isnan(car->ctrl->steer) || isinf(car->ctrl->steer)) car->ctrl->steer = 0; - if (isnan(car->ctrl->gear) || isinf(car->ctrl->gear)) car->ctrl->gear = 0; + if (isnan((double)car->ctrl->gear) || isinf((double)car->ctrl->gear)) car->ctrl->gear = 0; #endif /* When the car is broken try to send it on the track side */
signature.asc
Description: OpenPGP digital signature