diff options
author | belugas <belugas@openttd.org> | 2008-01-23 17:08:35 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2008-01-23 17:08:35 +0000 |
commit | fa39916fe906543d2642dc63cd8badb10096a491 (patch) | |
tree | 9a885c0e543d6bc0b57a61d035fa6563b4b145aa /src/map_func.h | |
parent | 8be486c27eb8725338605053ad74e075d247e3f0 (diff) | |
download | openttd-fa39916fe906543d2642dc63cd8badb10096a491.tar.xz |
(svn r11961) -Feature[newGRF]: Add support for Action 0D, var 13: informations about current map size.
Diffstat (limited to 'src/map_func.h')
-rw-r--r-- | src/map_func.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map_func.h b/src/map_func.h index dc40b1011..9e2a5d70e 100644 --- a/src/map_func.h +++ b/src/map_func.h @@ -57,6 +57,17 @@ static inline uint MapLogX() } /** + * 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 */ |