[type] Use vec4 and vec3 in Ruamoko progs

I'm not sure if that was a thinko, typo, or something else, but judging
by the relevant commit message, the use of quaternion and vector was
intended only for advanced progs (v6p).
This commit is contained in:
Bill Currie 2023-08-23 15:29:01 +09:00
parent 0d639510e3
commit c92dd9d86c
1 changed files with 1 additions and 1 deletions

View File

@ -661,7 +661,7 @@ vector_type (const type_t *ele_type, int width)
for (type_t **vtype = vec_types; *vtype; vtype++) {
if ((*vtype)->type == ele_type->type
&& (*vtype)->width == width) {
if (options.code.progsversion <= PROG_VERSION) {
if (options.code.progsversion < PROG_VERSION) {
if (*vtype == &type_vec3) {
return &type_vector;
}