mirror of https://github.com/dirtbags/tanks.git
Fix runaway comment bug (finally!)
This commit is contained in:
parent
4478c14434
commit
1463bd2a3a
|
@ -1,2 +0,0 @@
|
||||||
50 0 0 1
|
|
||||||
70 0 50 0
|
|
7
forf.c
7
forf.c
|
@ -586,8 +586,13 @@ forf_parse_stream(struct forf_env *env,
|
||||||
|
|
||||||
/* Handle comments */
|
/* Handle comments */
|
||||||
if (comment) {
|
if (comment) {
|
||||||
if (')' == c) {
|
switch (c) {
|
||||||
|
case EOF:
|
||||||
|
env->error = forf_error_parse;
|
||||||
|
return pos;
|
||||||
|
case ')':
|
||||||
comment = 0;
|
comment = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue