| 222 | } |
| 223 | |
| 224 | static void |
| 225 | write_tibheader(FILE *fileptr, struct tibhdr_struct *tibhdr) |
| 226 | { |
| 227 | if (fseek(fileptr, 0L, SEEK_SET)) { |
| 228 | Fprintf(stderr, "Error writing header to tile file\n"); |
| 229 | } |
| 230 | fwrite(tibhdr, sizeof(struct tibhdr_struct), 1, fileptr); |
| 231 | } |
| 232 | |
| 233 | static void |
| 234 | build_tibtile(pixel (*pixels)[TILE_X], boolean statues) |