K 10 svn:author V 3 dwp K 8 svn:date V 27 1999-08-27T10:53:56.000000Z K 7 svn:log V 1246 Tidied up some things about ruleset data and packets, especially for government rulesets. (Government ruleset stuff had problems if the client disconnected and re-connected: would leak memory, and could get the number of governments wrong.) Added new packet "ruleset control" (like separate terrain control) which contain government_count explicitly, and also move ruleset control data from game_info packet to here, since this stuff doesn't need to be sent every turn like game_info is. Added more sanity checking on received ruleset packet data by client (compared to static arrays or mallocs). Changed strings in government data (gov name and ruler titles) to use MAX_LEN_NAME char arrays instead of (char*) and mystrdup, to make memory management in client easier (eg, on re-connection), and since we can't use longer than MAX_LEN_NAME anyway (due to packets), and since having a max len is easier in other respects, eg for display. Also made the ruler_titles array have number of titles stored explicitly in government struct (rather than use special terminator title), which allows client to sanity-check packet data. Plus minor fix: government flags data was in government packet, but never initialized in send_ruleset_governments()! END