From 3f66dc11646de5520bef59a69c8385b750f8e806 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 13 Sep 2024 21:25:57 +0900 Subject: [PATCH] [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. --- libs/gamecode/pr_debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/gamecode/pr_debug.c b/libs/gamecode/pr_debug.c index 7465e153e..a9ed6638f 100644 --- a/libs/gamecode/pr_debug.c +++ b/libs/gamecode/pr_debug.c @@ -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; } }