Use proper locomotion when avoiding water or lava

This commit is contained in:
Pasi Kallinen
2022-02-13 10:56:40 +02:00
parent a1bb10e8f6
commit 73dbd39d98
3 changed files with 14 additions and 2 deletions

View File

@@ -349,7 +349,9 @@ ing_suffix(const char *s)
Strcpy(onoff, p);
*p = '\0';
}
if (p >= &buf[3] && !index(vowel, *(p - 1))
if (p >= &buf[2] && !strcmpi(p - 2, "er")) { /* slither + ing */
/* nothing here */
} else if (p >= &buf[3] && !index(vowel, *(p - 1))
&& index(vowel, *(p - 2)) && !index(vowel, *(p - 3))) {
/* tip -> tipp + ing */
*p = *(p - 1);