- fixed issues with option menu items.

- fixed the octal parser in strbin.
- remove 'new' token because it gets in the way.
This commit is contained in:
Christoph Oelckers 2017-02-12 16:02:55 +01:00
commit 03283de4e8
10 changed files with 26 additions and 22 deletions

View file

@ -614,16 +614,16 @@ int strbin (char *str)
case '6':
case '7':
c = 0;
for (i = 0; i < 3; i++) {
c <<= 3;
for (i = 0; i < 2; i++)
{
p++;
if (*p >= '0' && *p <= '7')
c += *p-'0';
c = (c << 3) + *p - '0';
else
{
p--;
break;
}
p++;
}
*str++ = c;
break;
@ -717,16 +717,16 @@ FString strbin1 (const char *start)
case '6':
case '7':
c = 0;
for (i = 0; i < 3; i++) {
c <<= 3;
for (i = 0; i < 2; i++)
{
p++;
if (*p >= '0' && *p <= '7')
c += *p-'0';
c = (c << 3) + *p - '0';
else
{
p--;
break;
}
p++;
}
result << c;
break;