Gcol_l_grey // Silver = white
};
-wchar_t terrain_wchars[NUM_TERRAINS] =
-{
- L'█', L'█', L'+', L'·', L'_', L'>', L'{', L'{'
-};
-
-short terrain_cpairs[NUM_TERRAINS] =
-{
- Gcol_brown, 0, 0, 0,
- 0, 0, Gcol_red, Gcol_blue
-};
-
attr_t terrain_attrs[NUM_TERRAINS] =
{
0, 0, 0, 0,
for (i = 0; i < NUM_TERRAINS; ++i)
{
wchar_t wch[2];
- wch[0] = terrain_wchars[i];
+ /* policy decision: for now we don't support use of combining
+ * characters for terrain. */
+ mbtowc(wch, terrain_props[i].unicode, 4);
wch[1] = 0;
- setcchar(terrain_tiles + i, wch, terrain_attrs[i], terrain_cpairs[i], NULL);
+ setcchar(terrain_tiles + i, wch, terrain_attrs[i], colour_cpairs[terrain_props[i].colour], NULL);
}
for (i = 0; i < NUM_OF_PERMOBJS; ++i)
{