| 621 | } |
| 622 | |
| 623 | static const char * get_constructed_track_str(df::tiletype *tt, |
| 624 | const char * base) { |
| 625 | TileDirection dir = tileDirection(*tt); |
| 626 | if (!dir.whole) |
| 627 | return "~"; |
| 628 | |
| 629 | ostringstream str; |
| 630 | str << base; |
| 631 | if (dir.north) str << "N"; |
| 632 | if (dir.south) str << "S"; |
| 633 | if (dir.east) str << "E"; |
| 634 | if (dir.west) str << "W"; |
| 635 | |
| 636 | return cache(str); |
| 637 | } |
| 638 | |
| 639 | static const char * get_constructed_wall_str(df::coord pos) { |
| 640 | df::construction *c = Constructions::findAtTile(pos); |
no test coverage detected