accc: fix SURF output format string

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

Former-commit-id: 5bc1804c2a47d368dbda1b9851da88c47bc0196a
Former-commit-id: 017d1ed711ab9cf8dc64a6a6d57f4e4a37b8deab
This commit is contained in:
iobyte 2021-11-24 06:18:35 +00:00
parent d267f54bbf
commit 8f060cbbc5

View file

@ -1541,7 +1541,7 @@ int printOb(FILE *ofile, ob_t &object)
for (int i = 0; i < object.numsurf; i++)
{
if (object.attrSurf != 0)
fprintf(ofile, "SURF 0x%2x\n", object.attrSurf);
fprintf(ofile, "SURF 0x%02x\n", object.attrSurf);
else
fprintf(ofile, "SURF 0x20\n");
fprintf(ofile, "mat %d\n", object.attrMat);
@ -2539,7 +2539,7 @@ void stripifyOb(FILE * ofile, ob_t * object, bool writeit)
* 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)
* fprintf(ofile, "SURF 0x%02x\n", object->attrSurf)
*
* However this causes huge artifacts in the generated tracks. Thus, the
* following is not correct behavior but works for whatever reason.
@ -2550,7 +2550,7 @@ void stripifyOb(FILE * ofile, ob_t * object, bool writeit)
*/
if (object->attrSurf)
{
fprintf(ofile, "SURF 0x%2x\n",
fprintf(ofile, "SURF 0x%02x\n",
(object->attrSurf & 0xF0) | 0x04);
}
else