summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/clua.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-25 18:45:25 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-25 18:45:25 +0000
commitdd016fa36134c00a8c1f919aba25b872bcba4751 (patch)
treed96ffedd99acfc3f9503cba5faa9bc7a5da26301 /crawl-ref/source/clua.cc
parent8c0ebd4d4cfbab6437fd1d62c64523683f29ab4d (diff)
downloadcrawl-ref-dd016fa36134c00a8c1f919aba25b872bcba4751.tar.gz
crawl-ref-dd016fa36134c00a8c1f919aba25b872bcba4751.zip
* Move eating logic from lua to C again, so as to handle more than
boolean responses (eat, skip, cancel). * Remove the now deprecated eat.lua. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8746 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r--crawl-ref/source/clua.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc
index e75261e300..f3acf7d44f 100644
--- a/crawl-ref/source/clua.cc
+++ b/crawl-ref/source/clua.cc
@@ -1618,7 +1618,7 @@ static int food_do_eat(lua_State *ls)
{
bool eaten = false;
if (!you.turn_is_over)
- eaten = eat_food(false);
+ eaten = eat_food(-1);
lua_pushboolean(ls, eaten);
return (1);
}
@@ -1627,7 +1627,7 @@ static int food_prompt_eat_chunks(lua_State *ls)
{
int eaten = 0;
if (!you.turn_is_over)
- eaten = eat_chunks();
+ eaten = prompt_eat_chunks();
lua_pushboolean(ls, (eaten != 0));
return (1);