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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user