Completed map size data.

This commit is contained in:
Guillaume Melquiond 2009-10-31 19:05:59 +00:00
parent 6c5881f6ed
commit 5e564b2688

View file

@ -1295,13 +1295,15 @@ static int intf_set_village_owner(lua_State *L)
* Returns the map size.
* - Ret 1: width.
* - Ret 2: height.
* - Ret 3: border size.
*/
static int intf_get_map_size(lua_State *L)
{
const gamemap &map = *resources::game_map;
lua_pushinteger(L, map.w());
lua_pushinteger(L, map.h());
return 2;
lua_pushinteger(L, map.border_size());
return 3;
}
/**