Activity log for bug #1328664

Date Who What changed Old value New value Message
2014-06-10 19:50:25 Andre Novellino Gouvêa bug added bug
2014-06-10 19:50:25 Andre Novellino Gouvêa attachment added script_map.cpp https://bugs.launchpad.net/bugs/1328664/+attachment/4129197/+files/script_map.cpp
2014-06-10 19:55:06 Andre Novellino Gouvêa description This is not a bug per se, but I think that it would be good to have Lua functions for 1) Getting a tile's terrain name, and 2) Getting whether a tile has a certain flag or not. I created a patch with functions that do exactly that, and I tested the patch and it works. I attached the patch to this report. My changes in the patch are tagged with "//Wyrmgus start" and "//Wyrmgus end" to make it easier to identify them; should this patch be accepted, I suggest removing those comment tags. This is not a bug per se, but I think that it would be good to have Lua functions for 1) Getting a tile's terrain name, and 2) Getting whether a tile has a certain flag or not. I created a patch with functions that do exactly that, and I tested the patch and it works. I attached the patch to this report. My changes in the patch are tagged with "//Wyrmgus start" and "//Wyrmgus end" to make it easier to identify them; should this patch be accepted, I suggest removing those comment tags. These functions are very helpful for correctly generating units and buildings during random map generation.
2014-06-11 10:24:53 Launchpad Janitor branch linked lp:stratagus
2014-06-11 10:25:36 cybermind stratagus: status New Fix Committed
2014-06-11 10:25:39 cybermind stratagus: assignee cybermind (iddqd-mail)
2015-03-19 17:30:54 cybermind stratagus: status Fix Committed Fix Released
2015-03-19 17:30:56 cybermind stratagus: milestone 2.3