From ea7c4d554fc6735f9442797527834ae95c51267b Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 22 May 2025 11:41:18 -0400 Subject: ecs: actually don't serialize built-in fonts --- src/serialization.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/serialization.cpp') diff --git a/src/serialization.cpp b/src/serialization.cpp index 352ecc9..66a0f4b 100644 --- a/src/serialization.cpp +++ b/src/serialization.cpp @@ -67,12 +67,9 @@ void pke_serialize_scene(srlztn_serialize_helper *h) { FontTypeIndex font_type_count; FontType *fonts = FontType_GetFonts(font_type_count); for (FontTypeIndex_T b = 0; b < (FontTypeIndex_T)font_type_count; ++b) { - FontType *fr = &fonts[b]; - if (PK_HAS_FLAG(fr->entity_flags, ENTITY_FLAG_DO_NOT_SERIALIZE)) { - continue; - } - for (FontRenderIndex_T i = 0; i < (FontRenderIndex_T)fr->h_render; ++i) { - pke_serialize_font_render(h, &fr->renders[i]); + FontType *ft = &fonts[b]; + for (FontRenderIndex_T i = 0; i < (FontRenderIndex_T)ft->h_render; ++i) { + pke_serialize_font_render(h, &ft->renders[i]); } } -- cgit v1.2.3