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

Comparing deliantra/server/random_maps/floor.C (file contents):
Revision 1.1 by elmex, Sun Aug 13 17:16:03 2006 UTC vs.
Revision 1.2 by root, Tue Aug 29 08:01:36 2006 UTC

1/* 1/*
2 * static char *rcsid_floor_c = 2 * static char *rcsid_floor_c =
3 * "$Id: floor.C,v 1.1 2006/08/13 17:16:03 elmex Exp $"; 3 * "$Id: floor.C,v 1.2 2006/08/29 08:01:36 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
49 style_map = find_style(styledirname,floorstyle,-1); 49 style_map = find_style(styledirname,floorstyle,-1);
50 if(style_map == 0) return newMap; 50 if(style_map == 0) return newMap;
51 51
52 /* fill up the map with the given floor style */ 52 /* fill up the map with the given floor style */
53 if((the_floor=pick_random_object(style_map))!=NULL) { 53 if((the_floor=pick_random_object(style_map))!=NULL) {
54 int i,j; 54 int i,j;
55 for(i=0;i<RP->Xsize;i++) 55 for(i=0;i<RP->Xsize;i++)
56 for(j=0;j<RP->Ysize;j++) { 56 for(j=0;j<RP->Ysize;j++) {
57 object *thisfloor=arch_to_object(the_floor->arch); 57 object *thisfloor=arch_to_object(the_floor->arch);
58 thisfloor->x = i; thisfloor->y = j; 58 thisfloor->x = i; thisfloor->y = j;
59 insert_ob_in_map(thisfloor,newMap,thisfloor,INS_NO_MERGE | INS_NO_WALK_ON); 59 insert_ob_in_map(thisfloor,newMap,thisfloor,INS_NO_MERGE | INS_NO_WALK_ON);
60 } 60 }
61 } 61 }
62 return newMap; 62 return newMap;
63} 63}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines