mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
Use atof when checking truth values.
This commit is contained in:
parent
d9ed34a5fb
commit
36774a612d
1 changed files with 3 additions and 3 deletions
|
@ -195,7 +195,7 @@ GIB_Execute (cbuf_t * cbuf)
|
|||
gib_buffer_data_t *g = GIB_DATA (cbuf);
|
||||
gib_builtin_t *b;
|
||||
gib_function_t *f;
|
||||
int cond;
|
||||
double cond;
|
||||
|
||||
if (!g->program)
|
||||
return;
|
||||
|
@ -206,8 +206,8 @@ GIB_Execute (cbuf_t * cbuf)
|
|||
return;
|
||||
if (g->ip->flags & TREE_COND) {
|
||||
cond = g->ip->flags & TREE_NOT ?
|
||||
atoi (cbuf->args->argv[1]->str) :
|
||||
!atoi (cbuf->args->argv[1]->str);
|
||||
atof (cbuf->args->argv[1]->str) :
|
||||
!atof (cbuf->args->argv[1]->str);
|
||||
if (cond)
|
||||
g->ip = g->ip->jump;
|
||||
} else if (g->ip->flags & TREE_FORNEXT) {
|
||||
|
|
Loading…
Reference in a new issue