… | |
… | |
137 | |
137 | |
138 | switch (orientation) |
138 | switch (orientation) |
139 | { |
139 | { |
140 | case 1: |
140 | case 1: |
141 | { |
141 | { |
142 | style_map_up = find_style ("/styles/exitstyles/up" , exitstyle, -1); |
142 | style_map_up = find_style ("/styles/exitstyles/up" , exitstyle, RP->difficulty); |
143 | style_map_down = find_style ("/styles/exitstyles/down", exitstyle, -1); |
143 | style_map_down = find_style ("/styles/exitstyles/down", exitstyle, RP->difficulty); |
144 | break; |
144 | break; |
145 | } |
145 | } |
146 | |
146 | |
147 | case 2: |
147 | case 2: |
148 | { |
148 | { |
149 | style_map_up = find_style ("/styles/exitstyles/down", exitstyle, -1); |
149 | style_map_up = find_style ("/styles/exitstyles/down", exitstyle, RP->difficulty); |
150 | style_map_down = find_style ("/styles/exitstyles/up" , exitstyle, -1); |
150 | style_map_down = find_style ("/styles/exitstyles/up" , exitstyle, RP->difficulty); |
151 | break; |
151 | break; |
152 | } |
152 | } |
153 | |
153 | |
154 | default: |
154 | default: |
155 | { |
155 | { |
156 | style_map_up = |
156 | style_map_up = |
157 | style_map_down = find_style ("/styles/exitstyles/generic", exitstyle, -1); |
157 | style_map_down = find_style ("/styles/exitstyles/generic", exitstyle, RP->difficulty); |
158 | break; |
158 | break; |
159 | } |
159 | } |
160 | } |
160 | } |
161 | |
161 | |
162 | the_exit_up = style_map_up |
162 | the_exit_up = style_map_up |
… | |
… | |
278 | |
278 | |
279 | if (the_exit_down) |
279 | if (the_exit_down) |
280 | { |
280 | { |
281 | char buf[16384]; |
281 | char buf[16384]; |
282 | |
282 | |
283 | int i = find_free_spot (the_exit_down, map, downx, downy, 1, SIZEOFFREE1 + 1); |
283 | int i = rmg_find_free_spot (the_exit_down, map, downx, downy, 1, SIZEOFFREE1 + 1); |
284 | the_exit_down->x = downx + freearr_x[i]; |
284 | the_exit_down->x = downx + freearr_x[i]; |
285 | the_exit_down->y = downy + freearr_y[i]; |
285 | the_exit_down->y = downy + freearr_y[i]; |
286 | RP->origin_x = the_exit_down->x; |
286 | RP->origin_x = the_exit_down->x; |
287 | RP->origin_y = the_exit_down->y; |
287 | RP->origin_y = the_exit_down->y; |
288 | write_map_parameters_to_string (buf, RP); |
288 | write_map_parameters_to_string (buf, RP); |