… | |
… | |
470 | /* And tell player about the fix */ |
470 | /* And tell player about the fix */ |
471 | new_draw_info (NDI_UNIQUE, 0, pl, message); |
471 | new_draw_info (NDI_UNIQUE, 0, pl, message); |
472 | } |
472 | } |
473 | |
473 | |
474 | /** |
474 | /** |
475 | * Wall radius fix function |
|
|
476 | */ |
|
|
477 | static void |
|
|
478 | fix_walls_around (maptile *map, int x, int y) |
|
|
479 | { |
|
|
480 | for (int xt = x - 1; xt <= x + 1; xt++) |
|
|
481 | for (int yt = y - 1; yt <= y + 1; yt++) |
|
|
482 | if (!OUT_OF_REAL_MAP (map, xt, yt)) |
|
|
483 | fix_walls (map, xt, yt); |
|
|
484 | } |
|
|
485 | |
|
|
486 | /** |
|
|
487 | * Wall building function |
475 | * Wall building function |
488 | * |
476 | * |
489 | * Walls can be build: |
477 | * Walls can be build: |
490 | * - on a floor without anything else |
478 | * - on a floor without anything else |
491 | * - on an existing wall, with or without a floor |
479 | * - on an existing wall, with or without a floor |