mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-17 14:51:51 +00:00
[qfcc] Handle floats starting with .
eg, .25 My test scene has such a value. Obviously, I'd never compiled it on this branch since adding PGA physics.
This commit is contained in:
parent
75e293789a
commit
d1c4c59a57
1 changed files with 6 additions and 1 deletions
|
@ -789,7 +789,12 @@ parse_number (const rua_tok_t *tok, yyscan_t scanner)
|
|||
}
|
||||
}
|
||||
if (*dst) {
|
||||
dst += (*dst != '\'' && *dst != '_');
|
||||
if (*dst == '.') {
|
||||
dst++;
|
||||
fp = true;
|
||||
} else {
|
||||
dst += (*dst != '\'' && *dst != '_');
|
||||
}
|
||||
while ((*dst = *src++)) {
|
||||
if (hex && (*dst == 'p' || *dst == 'P')) {
|
||||
fp = true;
|
||||
|
|
Loading…
Reference in a new issue