Move segment::sides to end
sides[] is large and caused all members after it to require disp32 offsets. Move it to the end so that all members can use disp8 offsets. This saves ~1300 bytes of text on an editor+debug build.
This commit is contained in:
parent
228dd75260
commit
6f10a67c09
|
@ -157,7 +157,6 @@ struct segment {
|
|||
#if defined(DXX_BUILD_DESCENT_II)
|
||||
uint8_t slide_textures;
|
||||
#endif
|
||||
array<side, MAX_SIDES_PER_SEGMENT> sides; // 6 sides
|
||||
array<int, MAX_VERTICES_PER_SEGMENT> verts; // vertex ids of 4 front and 4 back vertices
|
||||
ubyte special; // what type of center this is
|
||||
sbyte matcen_num; // which center segment is associated with.
|
||||
|
@ -168,6 +167,7 @@ struct segment {
|
|||
ubyte s2_flags;
|
||||
#endif
|
||||
fix static_light;
|
||||
array<side, MAX_SIDES_PER_SEGMENT> sides; // 6 sides
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue