The TORCS Racing Board
Username: Password: Remember Me?
Lost Password Register
Author: firechief | Created: 2019-07-30 05:22:41
Subject: Robotec - VS 2013 compile error
This is just Visual Studio being stupid, refusing to cast a double to an enum on line 57 of driver.cpp. I got it to compile by casting it to an int first, as follows:-

mTestPath = (PathType)((int)param.getNum("private", "test line"));
Last Edited: 2019-07-30 05:22:41 by firechief
    Author: dummy | Created: 2019-07-30 08:47:39
    Subject: Re: Robotec - VS 2013 compile error
    Thanks Andrew, it's changed now.
    Last Edited: 2019-07-30 08:47:39 by dummy