-update network code for name player

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5716 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b97072a4755479c842cb73089b7a9108c4fea484
Former-commit-id: ce3148cbbc04df719c709502009ae51b4b2f9f3f
This commit is contained in:
torcs-ng 2013-11-04 21:02:27 +00:00
parent f7b1e09b19
commit c2ad063372

View file

@ -94,6 +94,8 @@ bool RobotXml::ReadRobotDrivers(const char*pRobotName,std::vector<NetDriver> &ve
else else
driver.client = false; driver.client = false;
strncpy(driver.car, GfParmGetStr(params, path2, "short name", NULL), 64);
strncpy(driver.car, GfParmGetStr(params, path2, "code name",NULL), 3);
strncpy(driver.car,GfParmGetStr(params, path2, "car name",NULL),64); strncpy(driver.car,GfParmGetStr(params, path2, "car name",NULL),64);
strncpy(driver.type,GfParmGetStr(params, path2, "type",NULL),64); strncpy(driver.type,GfParmGetStr(params, path2, "type",NULL),64);
strncpy(driver.skilllevel,GfParmGetStr(params, path2, "skill level",NULL),64); strncpy(driver.skilllevel,GfParmGetStr(params, path2, "skill level",NULL),64);