diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-09 13:36:31 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-09 13:36:31 +0200 |
commit | ca69f68a90b3f577f1d8711c08828696ad6025ac (patch) | |
tree | cbff1e65e60bb65c20bc8c540dc079ac4e866e37 /src/q_god.c | |
parent | 95bc3fc78d071be59870e418bb6229992fd5796a (diff) |
Lua: God quests: Remove unused player_{x,y} quest variables
Diffstat (limited to 'src/q_god.c')
-rw-r--r-- | src/q_god.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/q_god.c b/src/q_god.c index 6be1e062..e2a308bc 100644 --- a/src/q_god.c +++ b/src/q_god.c @@ -174,16 +174,6 @@ static int get_relic_gen_tries() return get_lua_int("god_quest.relic_gen_tries"); } -static void set_player_y(int y) -{ - exec_lua(format("god_quest.player_y = %d", y)); -} - -static void set_player_x(int x) -{ - exec_lua(format("god_quest.player_x = %d", x)); -} - static int get_dun_mindepth() { return get_lua_int("god_quest.dun_mindepth"); @@ -1058,18 +1048,6 @@ void quest_god_player_level_hook(int gained) /* actually place the dungeon in a random place */ quest_god_place_rand_dung(); - /* store the variables of the coords where the player was given the quest */ - if (p_ptr->wild_mode) - { - set_player_x(p_ptr->px); - set_player_y(p_ptr->py); - } - else - { - set_player_x(p_ptr->wilderness_x); - set_player_y(p_ptr->wilderness_y); - } - /* God issues instructions */ cmsg_format(TERM_L_BLUE, "The voice of %s booms in your head:", deity_info[p_ptr->pgod].name); |