From 5869c5622e4345ffd50e0713d188f2d283b61caa Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Wed, 5 Oct 2016 18:45:08 +0200 Subject: Remove support for "O:" lines in s_info.txt If was actually not being used. --- src/init1.cc | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'src/init1.cc') 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') { -- cgit v1.2.3