Author: cazfi Date: Sat Apr 25 22:15:51 2015 New Revision: 28872 URL: http://svn.gna.org/viewcvs/freeciv?rev=28872&view=rev Log: Store city worker task to a list.
See patch #6032 Modified: trunk/common/fc_interface.c trunk/common/player.c trunk/common/player.h Modified: trunk/common/fc_interface.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/fc_interface.c?rev=28872&r1=28871&r2=28872&view=diff ============================================================================== --- trunk/common/fc_interface.c (original) +++ trunk/common/fc_interface.c Sat Apr 25 22:15:51 2015 @@ -69,6 +69,7 @@ **************************************************************************/ void free_libfreeciv(void) { + diplrel_mess_close(); free_data_dir_names(); free_multicast_group(); } Modified: trunk/common/player.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/player.c?rev=28872&r1=28871&r2=28872&view=diff ============================================================================== --- trunk/common/player.c (original) +++ trunk/common/player.c Sat Apr 25 22:15:51 2015 @@ -1567,6 +1567,17 @@ } /************************************************************************** + Free diplrel_mess +**************************************************************************/ +void diplrel_mess_close(void) +{ + if (diplrel_mess != NULL) { + free(diplrel_mess); + diplrel_mess = NULL; + } +} + +/************************************************************************** Get the DiplRel requirements that are known to contradict the specified DiplRel requirement. Modified: trunk/common/player.h URL: http://svn.gna.org/viewcvs/freeciv/trunk/common/player.h?rev=28872&r1=28871&r2=28872&view=diff ============================================================================== --- trunk/common/player.h (original) +++ trunk/common/player.h Sat Apr 25 22:15:51 2015 @@ -432,6 +432,7 @@ bool gives_shared_vision(const struct player *me, const struct player *them); +void diplrel_mess_close(void); bool is_diplrel_between(const struct player *player1, const struct player *player2, int diplrel); _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits