Am Montag, 21. Mai 2007 schrieb Giel van Schijndel: > Author: muggenhor > Date: Mon May 21 00:55:12 2007 > New Revision: 1314 > > URL: http://svn.gna.org/viewcvs/warzone?rev=1314&view=rev > Log: > use (u)intX_t types for structs send accross the network (for the size > guarantees) > > Modified: > trunk/lib/netplay/netplay.h // These are actually boolean values so uint8_t would suffice just as well. // The problem is however that these where previously declared as BOOL, // which is typedef'd as int, which on most platforms is equal to uint32_t.
Actually it doesn't matter what they were before, since 2.1 is incompatible anyway and will be a lot more if the netcode should be rewritten. But still I'd leave the BOOL in there (you could make it C99 bool though), since neither uint8_t nor uint32_t are really descriptive about the boolean meaning of their contents. --DS
Description: This is a digitally signed message part.
_______________________________________________ Warzone-dev mailing list Warzoneemail@example.com https://mail.gna.org/listinfo/warzone-dev