mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
[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:
parent
cd051e8f9f
commit
3f66dc1164
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue