Re: [Freeciv-Dev] (PR#40644) [Patch] Iteration support to scripting

2009-01-09 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40644 2009/1/8 Madeline Book: It would be nice if one could do for player in game:players() do print player:name()-- or whatever end Lua has a lot of great features for implementing iteration cleanly and efficiently: closures,

[Freeciv-Dev] (PR#40649) Cartography tileset seems broken

2009-01-09 Thread john w. bjerk
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40649 Cartography is listed as a tileset that runs under 2.1, however i can't get it to load under 2.1.6 mac version. If it can't be easily fixed it should at least be removed from the list of tilesets.

[Freeciv-Dev] (PR#40650) [Patch] savegame.c compilation fix

2009-01-09 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40650 Should I start testing my patches with several versions of gcc before committing? Compiler warning (or error when compiled with --enable-debug) appeared in one of my environments after latest commits. I'll commit attached fix

Re: [Freeciv-Dev] (PR#40645) [Patch] Scripting API: city:has_building() player:has_wonder()

2009-01-09 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40645 2009/1/8 Marko Lindqvist: This patch adds functions city:has_building() and player:has_wonder() to scripting API. - Better comments - ML diff -Nurd -X.diff_ignore freeciv/server/scripting/api_methods.c

[Freeciv-Dev] (PR#40651) ctrl+c does not stop autogame

2009-01-09 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40651 Pressing ctrl+c once for autogame (timeout = -1) prints message 2: Setting timeout to 0. Autogame will stop., but game continues and server still accepts no input. - ML ___ Freeciv-dev

[Freeciv-Dev] (PR#40644) [Patch] Iteration support to scripting

2009-01-09 Thread Madeline Book
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40644 [cazf...@gmail.com - Fri Jan 09 13:32:08 2009]: 2009/1/8 Madeline Book: It would be nice if one could do for player in game:players() do print player:name()-- or whatever end Lua has a lot of great features for

[Freeciv-Dev] (PR#40611) default.serv sets startunits to cccwwx

2009-01-09 Thread Madeline Book
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40611 [guest - Mon Jan 05 12:28:43 2009]: [book - So 28. Dez 2008, 04:24:04]: [bvanev...@gmail.com - Sat Dec 27 22:33:31 2008]: [...] Solution: change line in default.serv to ccwwx Ok. The patch seems to be

[Freeciv-Dev] (PR#40653) Memory leak when AI finishes building ferry

2009-01-09 Thread Marko Lindqvist
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40653 ==10305== 31,710 bytes in 1,099 blocks are definitely lost in loss record 12 of 16 ==10305==at 0x4C265AE: malloc (vg_replace_malloc.c:207) ==10305==by 0x405D51: fc_real_malloc (mem.c:82) ==10305==by 0x405E66: fc_real_calloc

[Freeciv-Dev] (PR#40616) patch: allow 2.1.8 to compile under sun studio community edition 11/08

2009-01-09 Thread Madeline Book
URL: http://bugs.freeciv.org/Ticket/Display.html?id=40616 [james.mccl...@gmail.com - Thu Jan 01 04:14:04 2009]: Hello, I can confirm that the gtk 2 client does compile smoothly with the patch that you sent applied. I can also build with the --enable-debug and --enable-client=sdl