Re #691: accc: added comment to an incriminated code section (Boris)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4960 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 05cfe11f9fd7a8892d6f7e1f86e5b9094c4fff14 Former-commit-id: bb6d8211c05e006e0f5be8c49b93baf3dff2f76c
This commit is contained in:
parent
160f4ce957
commit
56f90eb25c
1 changed files with 15 additions and 0 deletions
|
@ -3556,6 +3556,21 @@ void stripifyOb(ob_t * object, int writeit)
|
||||||
tri = 0;
|
tri = 0;
|
||||||
if (writeit == 1)
|
if (writeit == 1)
|
||||||
{
|
{
|
||||||
|
/** For some reason the surf attribute is modified for the output.
|
||||||
|
* The surfaces are made double-sided, although stripification doesn't
|
||||||
|
* introduce this property.
|
||||||
|
* Thus, instead of the whole if-condition the actual code for outputting
|
||||||
|
* this attribute should simply be:
|
||||||
|
*
|
||||||
|
* fprintf(ofile, "SURF 0x%2x\n", object->attrSurf)
|
||||||
|
*
|
||||||
|
* However this causes huge artifacts in the generated tracks. Thus, the
|
||||||
|
* following is not correct behavior but works for whatever reason.
|
||||||
|
* It is a legacy from TORCS and no details are known why it is done.
|
||||||
|
*
|
||||||
|
* A proper solution would be to remove the attribute modification and
|
||||||
|
* rework all tracks to fit the correct behavior.
|
||||||
|
*/
|
||||||
if (object->attrSurf)
|
if (object->attrSurf)
|
||||||
{
|
{
|
||||||
fprintf(ofile, "SURF 0x%2x\n",
|
fprintf(ofile, "SURF 0x%2x\n",
|
||||||
|
|
Loading…
Reference in a new issue