summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_colour.cc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2010-09-10 13:51:09 -0500
committerJesse Luehrs <doy@tozt.net>2010-09-10 13:51:09 -0500
commitbfd030a493ccc4992ecbc4d47fb98598e6ab73e2 (patch)
treece6f59cc03d0f78358270376fec59624be8e9a31 /crawl-ref/source/l_colour.cc
parent504a94a174f38ae9ecd45e1fdc1f222a7b533fae (diff)
downloadcrawl-ref-bfd030a493ccc4992ecbc4d47fb98598e6ab73e2.tar.gz
crawl-ref-bfd030a493ccc4992ecbc4d47fb98598e6ab73e2.zip
use dlua, not clua, for colour stuff
Diffstat (limited to 'crawl-ref/source/l_colour.cc')
-rw-r--r--crawl-ref/source/l_colour.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/l_colour.cc b/crawl-ref/source/l_colour.cc
index 7727691233..36f3685888 100644
--- a/crawl-ref/source/l_colour.cc
+++ b/crawl-ref/source/l_colour.cc
@@ -5,9 +5,9 @@
#include "AppHdr.h"
-#include "clua.h"
#include "cluautil.h"
#include "colour.h"
+#include "dlua.h"
#include "message.h"
typedef int (*lua_element_colour_calculator)(int, const coord_def&,
@@ -48,20 +48,20 @@ static int next_colour = ETC_FIRST_LUA;
static int _lua_element_colour(int rand, const coord_def& loc,
std::string function)
{
- lua_State *ls = clua.state();
+ lua_State *ls = dlua.state();
- if (clua.loadbuffer(function.data(), function.length(),
+ if (dlua.loadbuffer(function.data(), function.length(),
"lua colour definition"))
{
- mpr(clua.error.c_str(), MSGCH_WARN);
+ mpr(dlua.error.c_str(), MSGCH_WARN);
return BLACK;
}
lua_pushinteger(ls, rand);
lua_pushinteger(ls, loc.x);
lua_pushinteger(ls, loc.y);
- if (!clua.callfn(NULL, 3, 1))
+ if (!dlua.callfn(NULL, 3, 1))
{
- mpr(clua.error.c_str(), MSGCH_WARN);
+ mpr(dlua.error.c_str(), MSGCH_WARN);
return BLACK;
}