mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
Use float for enum defs in v6 progs.
The values are (or should be!) written as floats, so don't give any debuggers hernias when displaying enums in v6 progs.
This commit is contained in:
parent
6b05a7e964
commit
7a504f8983
1 changed files with 3 additions and 1 deletions
|
@ -633,7 +633,9 @@ get_def_type (qfo_t *qfo, pointer_t type)
|
|||
case ty_union:
|
||||
return ev_invalid;
|
||||
case ty_enum:
|
||||
return ev_integer; // FIXME v6 progs should be float
|
||||
if (options.code.progsversion == PROG_ID_VERSION)
|
||||
return ev_float;
|
||||
return ev_integer;
|
||||
case ty_array:
|
||||
case ty_class:
|
||||
return ev_invalid;
|
||||
|
|
Loading…
Reference in a new issue