| 146 | } |
| 147 | |
| 148 | void |
| 149 | CloseTileFile(boolean filestyle) |
| 150 | { |
| 151 | fclose(filestyle ? tilefile_O : tilefile); |
| 152 | #ifdef TILES_IN_RAM |
| 153 | if (!filestyle && tiles_in_ram) { |
| 154 | if (ramtiles) |
| 155 | free((genericptr_t) ramtiles); |
| 156 | tiles_in_ram = FALSE; |
| 157 | } else if (filestyle && otiles_in_ram) { |
| 158 | if (oramtiles) |
| 159 | free((genericptr_t) oramtiles); |
| 160 | otiles_in_ram = FALSE; |
| 161 | } |
| 162 | #endif |
| 163 | } |
| 164 | |
| 165 | struct planar_cell_struct plancell; |
| 166 | struct overview_planar_cell_struct oplancell; |