summaryrefslogtreecommitdiff
path: root/src/serialization.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-05-22 11:41:18 -0400
committerJonathan Bradley <jcb@pikum.xyz>2025-05-22 14:23:20 -0400
commitea7c4d554fc6735f9442797527834ae95c51267b (patch)
tree99636c2fb747d6b72cd1ce2faa7c3a8d2d483afc /src/serialization.cpp
parent98857393fca248d7de2d93509bc29f9254e7fb77 (diff)
ecs: actually don't serialize built-in fonts
Diffstat (limited to 'src/serialization.cpp')
-rw-r--r--src/serialization.cpp9
1 files changed, 3 insertions, 6 deletions
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]);
}
}