* Perform the actual removal of the object from the map. * @param o The object to really clear. */
| 511 | * @param o The object to really clear. |
| 512 | */ |
| 513 | static void ReallyClearObjectTile(Object *o) |
| 514 | { |
| 515 | Object::DecTypeCount(o->type); |
| 516 | for (TileIndex tile_cur : o->location) { |
| 517 | DeleteNewGRFInspectWindow(GSF_OBJECTS, tile_cur.base()); |
| 518 | |
| 519 | MakeWaterKeepingClass(tile_cur, GetTileOwner(tile_cur)); |
| 520 | } |
| 521 | delete o; |
| 522 | } |
| 523 | |
| 524 | std::vector<ClearedObjectArea> _cleared_object_areas; |
| 525 |
no test coverage detected