summaryrefslogtreecommitdiff
path: root/src/lua_bind.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-04-09 11:16:40 +0200
committerBardur Arantsson <bardur@scientician.net>2012-04-09 11:44:10 +0200
commit4d4de63ce360e1b4fe6248b6e18ebd48f618d504 (patch)
tree59120f39245613f1c368242d941ea728b6e45397 /src/lua_bind.c
parentc81957d766f664bbffc5ec1976a5013f955e0d82 (diff)
Lua: Clean up handling of Theme GOD_* variables
Diffstat (limited to 'src/lua_bind.c')
-rw-r--r--src/lua_bind.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c
index fa88a7c1..ca65cffd 100644
--- a/src/lua_bind.c
+++ b/src/lua_bind.c
@@ -589,38 +589,6 @@ int get_lua_int(cptr name)
return exec_lua(format("return %s", name));
}
-static int get_god_theme(cptr name)
-{
- if (game_module_idx == MODULE_THEME)
- {
- return exec_lua(format("return GOD_%s", name));
- }
- else
- {
- return -1;
- }
-}
-
-s16b get_god_AULE()
-{
- return get_god_theme("AULE");
-}
-
-s16b get_god_MANDOS()
-{
- return get_god_theme("MANDOS");
-}
-
-s16b get_god_VARDA()
-{
- return get_god_theme("VARDA");
-}
-
-s16b get_god_ULMO()
-{
- return get_god_theme("ULMO");
-}
-
/*
* Returns the direction of the compass that y2, x2 is from y, x
* the return value will be one of the following: north, south,