… | |
… | |
352 | return; |
352 | return; |
353 | |
353 | |
354 | /* Now delete current wall, and insert new one |
354 | /* Now delete current wall, and insert new one |
355 | * We save flags to avoid any trouble with buildable/non buildable, and so on |
355 | * We save flags to avoid any trouble with buildable/non buildable, and so on |
356 | */ |
356 | */ |
357 | object::flags_t old_flags = wall->flags; // elmex: this is where C++ pays off |
357 | object::flags_t old_flags = wall->flag; // elmex: this is where C++ pays off |
358 | |
358 | |
359 | wall->destroy (); |
359 | wall->destroy (); |
360 | |
360 | |
361 | wall = arch_to_object (new_arch); |
361 | wall = arch_to_object (new_arch); |
362 | wall->type = BUILDABLE_WALL; |
362 | wall->type = BUILDABLE_WALL; |
363 | insert_ob_in_map_at (wall, map, NULL, INS_ABOVE_FLOOR_ONLY, x, y); |
363 | insert_ob_in_map_at (wall, map, NULL, INS_ABOVE_FLOOR_ONLY, x, y); |
364 | wall->flags = old_flags; |
364 | wall->flag = old_flags; |
365 | } |
365 | } |
366 | |
366 | |
367 | /** |
367 | /** |
368 | * \brief Floor building function |
368 | * \brief Floor building function |
369 | * |
369 | * |