ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/random_maps/door.C
(Generate patch)

Comparing deliantra/server/random_maps/door.C (file contents):
Revision 1.12 by pippijn, Mon Jan 15 21:06:19 2007 UTC vs.
Revision 1.13 by root, Sat Jan 27 00:56:48 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines