mapgen
This commit is contained in:
parent
82fce0b9d9
commit
339785fa5e
|
@ -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
|
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue