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
that are declared with pack(1) and also attribute((ms_struct)) However, since they also contain pointers, they are certainly not used anywhere where files and/or network data is accessed. Declaring it in the current way causes inefficient code to be used on architectures that don't allow unaligned accesses, and also slows down accesses to the member on architectures that allow it.
The text was updated successfully, but these errors were encountered:
Its possible they were swept up in the work to get cross platform LAN play working and don't need to be packed or the bitfield done a particular way. If you want to test network play between a client that has had these statements removed vs one that hasn't and verify they are still able to connect and play then they are probably safe to remove.
I have a bit difficulty in testing this, since you apparently cannot run both the client and server on the same machine.
BTW, i also found that in tiberian dawn, a lot of network related types are duplicate in defines.h and session.h. But unlike redalert, session.h does not seem to be used at all.
There are some structures like
Vanilla-Conquer/common/combuf.h
Line 60 in 77e2da0
pack(1)
and alsoattribute((ms_struct))
However, since they also contain pointers, they are certainly not used anywhere where files and/or network data is accessed. Declaring it in the current way causes inefficient code to be used on architectures that don't allow unaligned accesses, and also slows down accesses to the member on architectures that allow it.The text was updated successfully, but these errors were encountered: