[gamecode] Use only scalar types for basic encodings

I'm surprised other types weren't affected, but vec4's ecoding was being
picked up for float. Thankfully, all that was needed was checking width
and columns.
This commit is contained in:
Bill Currie 2024-09-13 21:25:57 +09:00
parent cd051e8f9f
commit 3f66dc1164

View file

@ -623,7 +623,9 @@ PR_DebugSetSym (progs_t *pr, pr_debug_header_t *debug)
type_ptr += type->size) {
type = &G_STRUCT (pr, qfot_type_t, type_encodings + type_ptr);
if (type->meta == ty_basic
&& (unsigned) type->type < ev_type_count) {
&& (unsigned) type->type < ev_type_count
&& type->basic.width == 1
&& type->basic.columns == 1) {
res->type_encodings[type->type] = type;
}
}