MCPcopy Create free account
hub / github.com/crawl/crawl / vmirror

Method vmirror

crawl-ref/source/mapdef.cc:1658–1679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1656}
1657
1658void map_lines::vmirror()
1659{
1660 const int vsize = lines.size();
1661 const int midpoint = vsize / 2;
1662
1663 for (int i = 0; i < midpoint; ++i)
1664 {
1665 string temp = lines[i];
1666 lines[i] = lines[vsize - 1 - i];
1667 lines[vsize - 1 - i] = temp;
1668 }
1669
1670 if (overlay)
1671 {
1672 for (int i = 0; i < midpoint; ++i)
1673 for (int j = 0, wide = width(); j < wide; ++j)
1674 swap((*overlay)(j, i), (*overlay)(j, vsize - 1 - i));
1675 }
1676
1677 vmirror_markers();
1678 solid_checked = false;
1679}
1680
1681void map_lines::hmirror()
1682{

Callers 3

_resolve_mapFunction · 0.80
resolve_subvaultFunction · 0.80
LUAFNFunction · 0.80

Calls 3

dprfFunction · 0.85
sizeMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected