summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-15 04:07:07 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-15 04:07:07 +0000
commitaf3cd3ff34ef5da884b2c673afe1321f0cf372e7 (patch)
treea574c2155f571f216f29c44b29e333ea320322a6 /crawl-ref/source/abyss.cc
parent71ed1a7fd6819916d79d194126c061ac1f087b11 (diff)
downloadcrawl-ref-af3cd3ff34ef5da884b2c673afe1321f0cf372e7.tar.gz
crawl-ref-af3cd3ff34ef5da884b2c673afe1321f0cf372e7.zip
Large tiles-related changes. Platform-specific rendering removed and replaced with SDL/OpenGL.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc17
1 files changed, 7 insertions, 10 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index 14440d8d0a..ce0fba4011 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -34,6 +34,9 @@
#include "stuff.h"
#include "spells3.h"
#include "terrain.h"
+#ifdef USE_TILE
+#include "tiledef-dngn.h"
+#endif
#include "tiles.h"
#include "traps.h"
#include "view.h"
@@ -654,11 +657,6 @@ void abyss_teleport( bool new_area )
_generate_area(MAPGEN_BORDER, MAPGEN_BORDER,
GXM - MAPGEN_BORDER, GYM - MAPGEN_BORDER, true);
-#ifdef USE_TILE
- // Update the wall colours.
- TileLoadWall(true);
-#endif
-
_xom_check_nearness();
grd[you.x_pos][you.y_pos] = DNGN_FLOOR;
@@ -884,16 +882,15 @@ static void _corrupt_square(const crawl_environment &oenv, const coord_def &c)
env.grid_colours(c) = oenv.floor_colour;
#ifdef USE_TILE
- // Modify tile flavor to use corrupted tiles.
if (feat == DNGN_ROCK_WALL)
{
- env.tile_flavor[c.x][c.y].wall =
- TILE_DNGN_WALL_CORRUPT - get_wall_tile_idx() + random2(4);
+ env.tile_flv[c.x][c.y].wall = tile_DNGN_start[IDX_WALL_UNDEAD]
+ + random2(tile_DNGN_count[IDX_WALL_UNDEAD]);
}
else if (feat == DNGN_FLOOR)
{
- env.tile_flavor[c.x][c.y].floor =
- TILE_DNGN_FLOOR_CORRUPT - get_floor_tile_idx() + random2(4);
+ env.tile_flv[c.x][c.y].floor = tile_DNGN_start[IDX_FLOOR_NERVES]
+ + random2(tile_DNGN_count[IDX_FLOOR_NERVES]);
}
#endif
}