| 141 | } |
| 142 | |
| 143 | bool MapExtras::Block::Allocate() |
| 144 | { |
| 145 | if (block) |
| 146 | return true; |
| 147 | |
| 148 | block = Maps::ensureTileBlock(bcoord.x*16, bcoord.y*16, bcoord.z); |
| 149 | if (!block) |
| 150 | return false; |
| 151 | |
| 152 | delete[] item_counts; |
| 153 | delete tiles; |
| 154 | delete basemats; |
| 155 | init(); |
| 156 | |
| 157 | return true; |
| 158 | } |
| 159 | |
| 160 | MapExtras::Block::~Block() |
| 161 | { |
no test coverage detected