1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Mark map element getters const

While it doesn't change a lot in terms of performance, it helps out
compiler being a bit smarter about inlining and reordering things (as
evidenced by generated assembly).
This commit is contained in:
Michał Janiszewski
2016-02-23 15:11:16 +01:00
parent fe7c99e256
commit d375015975
3 changed files with 11 additions and 11 deletions

View File

@@ -1801,7 +1801,7 @@ static void sub_68B3FB(int x, int y)
if (bx <= dpi->y)
return;
rct_map_element* element = map_element;//push map_element
const rct_map_element* element = map_element;//push map_element
sint16 max_height = 0;
do{