(svn r11961) -Feature[newGRF]: Add support for Action 0D, var 13: informations about current map size.

This commit is contained in:
belugas
2008-01-23 17:08:35 +00:00
parent 0b888ccc00
commit 4a3e135086
3 changed files with 45 additions and 0 deletions

View File

@@ -56,6 +56,17 @@ static inline uint MapLogX()
return _map_log_x;
}
/**
* Logarithm of the map size along the y side.
* @note try to avoid using this one
* @return 2^"return value" == MapSizeY()
*/
static inline uint MapLogY()
{
extern uint _map_log_y;
return _map_log_y;
}
/**
* Get the size of the map along the X
* @return the number of tiles along the X of the map