Missing padding in save files after `floormove_t::texture` field · Issue #1683 · chocolate-doom/chocolate-doom · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the original engine, the floormove_t structure is 44 bytes. The texture field is at offset 32 and is only 2 bytes, while the next field floordestheight must be aligned to 4 bytes. That means that two padding bytes get added after texture.
Background
Version of Chocolate Doom: git master
Game: Doom
Bug description
In the original engine, the
floormove_t
structure is 44 bytes. Thetexture
field is at offset 32 and is only 2 bytes, while the next fieldfloordestheight
must be aligned to 4 bytes. That means that two padding bytes get added aftertexture
.Chocolate Doom doesn't appear to do this:
chocolate-doom/src/doom/p_saveg.c
Lines 1062 to 1066 in 2ea764f
chocolate-doom/src/doom/p_saveg.c
Lines 1092 to 1096 in 2ea764f
The text was updated successfully, but these errors were encountered: