diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-12-31 00:22:42 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-12-31 10:53:49 +0100 |
commit | 5efdb5dd4cbb44164189937a54401a4e1cda25b0 (patch) | |
tree | 54715cef0f3e4baa9e64438cd23e9271bd128633 /crawl-ref/source/l_dgntil.cc | |
parent | 1cf9778054ab22649821cec9009146bc0697ee79 (diff) | |
download | crawl-ref-5efdb5dd4cbb44164189937a54401a4e1cda25b0.tar.gz crawl-ref-5efdb5dd4cbb44164189937a54401a4e1cda25b0.zip |
Also store default floor and rock tile names in the save.
Diffstat (limited to 'crawl-ref/source/l_dgntil.cc')
-rw-r--r-- | crawl-ref/source/l_dgntil.cc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/crawl-ref/source/l_dgntil.cc b/crawl-ref/source/l_dgntil.cc index 0ea2f9528f..9eb4a1d9cd 100644 --- a/crawl-ref/source/l_dgntil.cc +++ b/crawl-ref/source/l_dgntil.cc @@ -79,11 +79,8 @@ LUAFN(dgn_lrocktile) MAP(ls, 1, map); #ifdef USE_TILE - tileidx_t tile = get_tile_idx(ls, 2); - map->rock_tile = tile; - - const char *tile_name = tile_dngn_name(tile); - PLUARET(string, tile_name); + map->rock_tile = luaL_checkstring(ls, 2); + PLUARET(string, map->rock_tile.c_str()); #else UNUSED(map); PLUARET(string, "invalid"); @@ -95,11 +92,8 @@ LUAFN(dgn_lfloortile) MAP(ls, 1, map); #ifdef USE_TILE - tileidx_t tile = get_tile_idx(ls, 2); - map->floor_tile = tile; - - const char *tile_name = tile_dngn_name(tile); - PLUARET(string, tile_name); + map->floor_tile = luaL_checkstring(ls, 2); + PLUARET(string, map->floor_tile.c_str()); #else UNUSED(map); PLUARET(string, "invalid"); |