- parsing fucked up quotes when finding escaped chars.
- also, removed a warning
This commit is contained in:
Enno Rehling 2008-04-18 23:12:23 +00:00
parent 1e8af4e0e5
commit 6f9f857a83
2 changed files with 2 additions and 1 deletions

View file

@ -477,7 +477,7 @@ random_skill(unit *u, boolean weighted)
for (sv = u->skills; sv != u->skills + u->skill_size; ++sv) {
if (sv->level>0) {
if (weighted) {
if (n<sv->level) return sv->id;
if (n<(int)sv->level) return sv->id;
n-=sv->level;
} else {
if (n == 0) return sv->id;

View file

@ -151,6 +151,7 @@ parse_token(const char ** str)
}
if (escape) {
copy = true;
escape = false;
} else if (iswspace(ucs)) {
if (quotechar==0) break;
copy = true;