diff options
author | Neil Moore <neil@s-z.org> | 2013-05-26 15:30:54 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2013-05-26 15:39:18 -0400 |
commit | d8c861177ea69ba141ddfa227ac6e658efc2859a (patch) | |
tree | e38b2d0f273dc0c7c6c8562df1a2deaf8f07fa7d /crawl-ref/source/l_crawl.cc | |
parent | 7ec7b53325a43d426a44aeac3541654087cbe2e4 (diff) | |
download | crawl-ref-d8c861177ea69ba141ddfa227ac6e658efc2859a.tar.gz crawl-ref-d8c861177ea69ba141ddfa227ac6e658efc2859a.zip |
Make list_opt = foo reset the list, not append.
We have been warning of the impending change since 0.11.
Also remove the warn_list_append list and associated lua function,
since it was used only to implement the aforementioned warning.
Diffstat (limited to 'crawl-ref/source/l_crawl.cc')
-rw-r--r-- | crawl-ref/source/l_crawl.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/crawl-ref/source/l_crawl.cc b/crawl-ref/source/l_crawl.cc index 56149d2c65..4afb17f319 100644 --- a/crawl-ref/source/l_crawl.cc +++ b/crawl-ref/source/l_crawl.cc @@ -927,18 +927,6 @@ static int crawl_tutorial_msg(lua_State *ls) return 0; } -/* ---- Warn about listopt = value when the semantics are slated to change. -function l_warn_list_append(key) */ -static int crawl_warn_list_append(lua_State *ls) -{ - const char *key = luaL_checkstring(ls, 1); - if (!key) - return 0; - warn_list_append.insert(key); - return 0; -} - LUAWRAP(crawl_dump_char, dump_char(you.your_name, true)) #ifdef WIZARD @@ -1055,7 +1043,6 @@ static const struct luaL_reg crawl_clib[] = { "get_command", crawl_get_command }, { "endgame", crawl_endgame }, { "tutorial_msg", crawl_tutorial_msg }, - { "warn_list_append", crawl_warn_list_append }, { "dump_char", crawl_dump_char }, #ifdef WIZARD { "call_dlua", crawl_call_dlua }, |