Fix footpath bit placement failing.

Fixes #1025
This commit is contained in:
Duncan Frost 2015-04-28 17:07:36 +01:00
parent 54cf1c4371
commit 0816a5fdf5
1 changed files with 1 additions and 1 deletions

View File

@ -1038,7 +1038,7 @@ void sub_6E1F34(sint16 x, sint16 y, uint16 selected_scenery, sint16* grid_x, sin
return;
}
*parameter_1 = 0 | map_element->properties.path.type & 0x7;
*parameter_1 = 0 | ((map_element->properties.path.type & 0x7) << 8);
*parameter_2 = map_element->base_height | ((map_element->properties.path.type >> 4) << 8);
if (map_element->type & 1){
*parameter_2 |= 0x8000;