… | |
… | |
65 | else |
65 | else |
66 | { |
66 | { |
67 | vdoors = find_style ("/styles/doorstyles/vdoors", doorstyle, -1); |
67 | vdoors = find_style ("/styles/doorstyles/vdoors", doorstyle, -1); |
68 | if (!vdoors) |
68 | if (!vdoors) |
69 | return; |
69 | return; |
|
|
70 | |
70 | sprintf (doorpath, "/styles/doorstyles/hdoors%s", strrchr (vdoors->path, '/')); |
71 | sprintf (doorpath, "/styles/doorstyles/hdoors%s", strrchr (vdoors->path, '/')); |
71 | hdoors = find_style (doorpath, 0, -1); |
72 | hdoors = find_style (doorpath, 0, -1); |
|
|
73 | if (!hdoors) |
|
|
74 | return; |
72 | } |
75 | } |
73 | |
76 | |
74 | for (i = 0; i < RP->Xsize; i++) |
77 | for (i = 0; i < RP->Xsize; i++) |
75 | for (j = 0; j < RP->Ysize; j++) |
78 | for (j = 0; j < RP->Ysize; j++) |
76 | { |
79 | { |
… | |
… | |
94 | new_door->y = j; |
97 | new_door->y = j; |
95 | insert_ob_in_map (new_door, the_map, NULL, 0); |
98 | insert_ob_in_map (new_door, the_map, NULL, 0); |
96 | } |
99 | } |
97 | } |
100 | } |
98 | } |
101 | } |
|
|
102 | |