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

Comparing deliantra/server/random_maps/random_map.C (file contents):
Revision 1.7 by root, Tue Dec 12 21:39:56 2006 UTC vs.
Revision 1.9 by root, Thu Dec 14 22:45:40 2006 UTC

49 printf ("\n"); 49 printf ("\n");
50 } 50 }
51 } 51 }
52 printf ("\n"); 52 printf ("\n");
53} 53}
54EXTERN FILE *logfile; 54
55extern FILE *logfile;
56
55maptile * 57maptile *
56generate_random_map (const char *OutFileName, RMParms * RP) 58generate_random_map (const char *OutFileName, RMParms * RP)
57{ 59{
58 char **layout, buf[HUGE_BUF]; 60 char **layout, buf[HUGE_BUF];
59 maptile *theMap; 61 maptile *theMap;
158 /* free the layout */ 160 /* free the layout */
159 for (i = 0; i < RP->Xsize; i++) 161 for (i = 0; i < RP->Xsize; i++)
160 free (layout[i]); 162 free (layout[i]);
161 free (layout); 163 free (layout);
162 164
163 theMap->msg = strdup_local (buf); 165 theMap->msg = strdup (buf);
164 166
165 return theMap; 167 return theMap;
166} 168}
167 169
168/* function selects the layout function and gives it whatever 170/* function selects the layout function and gives it whatever

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines