diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:08 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-10-05 18:45:08 +0200 |
commit | 5869c5622e4345ffd50e0713d188f2d283b61caa (patch) | |
tree | 800164e0e000b253ff0a7b18c814135b67e993a5 /src/init1.cc | |
parent | 82e739ef82d6082712fb17ef71e6d9cba2e8fc58 (diff) |
Remove support for "O:" lines in s_info.txt
If was actually not being used.
Diffstat (limited to 'src/init1.cc')
-rw-r--r-- | src/init1.cc | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/init1.cc b/src/init1.cc index a6376090..29f63ac7 100644 --- a/src/init1.cc +++ b/src/init1.cc @@ -3091,38 +3091,6 @@ errr init_s_info_txt(FILE *fp) } - /* Process 'O' for "Opposite" */ - if (buf[0] == 'O') - { - char *sec, *cval; - s16b s1, s2; - - /* Scan for the values */ - if (NULL == (sec = strchr(buf + 2, ':'))) - { - return (1); - } - *sec = '\0'; - sec++; - if (!*sec) return (1); - if (NULL == (cval = strchr(sec, '%'))) - { - return (1); - } - *cval = '\0'; - cval++; - if (!*cval) return (1); - - s1 = find_skill(buf + 2); - s2 = find_skill(sec); - if ((s1 == -1) || (s2 == -1)) return (1); - - s_descriptors[s1].action[s2] = -atoi(cval); - - /* Next... */ - continue; - } - /* Process 'A' for "Amical/friendly" */ if (buf[0] == 'f') { |