| 265 | } |
| 266 | |
| 267 | bool MapExtras::Block::setTiletypeAt(df::coord2d pos, df::tiletype tt, bool force) |
| 268 | { |
| 269 | if (!block) |
| 270 | return false; |
| 271 | |
| 272 | if (!basemats) |
| 273 | init_tiles(true); |
| 274 | |
| 275 | pos = pos & 15; |
| 276 | |
| 277 | dirty_tiles = true; |
| 278 | tiles->raw_tiles[pos.x][pos.y] = tt; |
| 279 | tiles->dirty_raw.setassignment(pos, true); |
| 280 | |
| 281 | return true; |
| 282 | } |
| 283 | |
| 284 | static df::block_square_event_designation_priorityst *getPriorityEvent(df::map_block *block, bool write) |
| 285 | { |
no outgoing calls
no test coverage detected