diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-02-04 10:44:10 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-02-04 10:44:10 +0100 |
commit | 655308482200fb624b51246b50aa6866750e9c78 (patch) | |
tree | 88beb8221f042d418cc12c2126a249c08b9b126c /src | |
parent | 41e92514ef709db9985696b941ca170064f4f74c (diff) |
Remove the "low on fuel" check for light sources when entering overland travel mode.
The code already doesn't require any light equipped and this can cause extremely unfair and out-of-the-blue deaths when the player's light source is cursed.
Diffstat (limited to 'src')
-rw-r--r-- | src/dungeon.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/dungeon.c b/src/dungeon.c index bcda2da1..fca12173 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -2885,11 +2885,10 @@ static void process_world(void) } /* The light is getting dim */ - else if (o_ptr->timeout < 100) + else if ((o_ptr->timeout < 100) && (o_ptr->timeout % 10 == 0)) { if (disturb_minor) disturb(0, 0); cmsg_print(TERM_YELLOW, "Your light is growing faint."); - drop_from_wild(); } } } @@ -3836,10 +3835,6 @@ static void process_command(void) { msg_print("To flee the ambush you have to reach the edge of the map."); } - else if (o_ptr->tval && (f4 & TR4_FUEL_LITE) && (o_ptr->timeout < 100)) - { - msg_print("Your light is too low on fuel for you to travel with it."); - } /* TODO: make the above stuff use this hook */ else if (!process_hooks(HOOK_FORBID_TRAVEL, "()")) { |