This commit is contained in:
olikraus 2017-07-06 07:07:10 +02:00
parent 82fce0b9d9
commit 339785fa5e
2 changed files with 19 additions and 1 deletions

18
sys/tga/mapgen/map.h Normal file
View File

@ -0,0 +1,18 @@
#ifndef _MAP_H
#define _MAP_H
#include <stdint.h>
struct _map_struct
{
unsigned char *data;
uint8_t width;
uint8_t height;
};
typedef struct _map_struct map_t;
#endif

View File

@ -514,7 +514,7 @@ void write_map(void)
}
fprintf(out_fp, "\"");
if ( y+1 < map_height )
fprintf(out_fp, ",\n");
fprintf(out_fp, "\n");
else
fprintf(out_fp, ";\n");
}