mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
handle float conditionals
This commit is contained in:
parent
5798c9d67a
commit
4d86c40113
1 changed files with 2 additions and 0 deletions
|
@ -184,6 +184,8 @@ PR_Debug_Watch (progs_t *pr, const char *expr)
|
|||
pr->wp_val.integer_var = strtol (ws->token->str, &e, 0);
|
||||
if (e == ws->token->str)
|
||||
goto error;
|
||||
if (*e == '.' || *e == 'e' || *e == 'E')
|
||||
pr->wp_val.float_var = strtod (ws->token->str, &e);
|
||||
pr->wp_conditional = 1;
|
||||
}
|
||||
if (Script_TokenAvailable (ws, 1))
|
||||
|
|
Loading…
Reference in a new issue