summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
committerBardur Arantsson <bardur@scientician.net>2016-10-05 18:45:08 +0200
commit5869c5622e4345ffd50e0713d188f2d283b61caa (patch)
tree800164e0e000b253ff0a7b18c814135b67e993a5 /src
parent82e739ef82d6082712fb17ef71e6d9cba2e8fc58 (diff)
Remove support for "O:" lines in s_info.txt
If was actually not being used.
Diffstat (limited to 'src')
-rw-r--r--src/init1.cc32
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')
{