diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-12 00:01:04 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-12 00:06:45 +0100 |
commit | 380a7102efd4233fabfca8a9a0184408bd597ded (patch) | |
tree | d2790c34e6f7ecf2559f6473b52df74e3ab3972c /src/monster1.c | |
parent | fc2e719c1efc058ed900f363838a4def87e68cbc (diff) |
Remove ANGBAND_LITE option.
Diffstat (limited to 'src/monster1.c')
-rw-r--r-- | src/monster1.c | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/monster1.c b/src/monster1.c index 790453bc..5da7d478 100644 --- a/src/monster1.c +++ b/src/monster1.c @@ -362,76 +362,9 @@ static void roff_aux(int r_idx, int ego, int remem) { char buf[2048]; -#ifdef DELAY_LOAD_R_TEXT - - int fd; - - /* Build the filename */ - path_build(buf, 1024, ANGBAND_DIR_DATA, "r_info.raw"); - - /* Grab permission */ - safe_setuid_grab(); - - /* Open the "raw" file */ - fd = fd_open(buf, O_RDONLY); - - /* Drop permission */ - safe_setuid_drop(); - - /* Use file */ - if (fd >= 0) - { - huge pos; - - /* Starting position */ - pos = r_ptr->text; - - /* Additional offsets */ - pos += r_head->head_size; - pos += r_head->info_size; - pos += r_head->name_size; - -#if 0 - - /* Maximal length */ - len = r_head->text_size - r_ptr->text; - - /* Actual length */ - for (i = r_idx + 1; i < max_r_idx; i++) - { - /* Actual length */ - if (r_info[i].text > r_ptr->text) - { - /* Extract length */ - len = r_info[i].text - r_ptr->text; - - /* Done */ - break; - } - } - - /* Maximal length */ - if (len > 2048) len = 2048; - -#endif - - /* Seek */ - (void)fd_seek(fd, pos); - - /* Read a chunk of data */ - (void)fd_read(fd, buf, 2048); - - /* Close it */ - (void)fd_close(fd); - } - -#else - /* Simple method */ strcpy(buf, r_text + r_ptr->text); -#endif - /* Dump it */ text_out(buf); text_out(" "); |