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

Comparing deliantra/server/random_maps/random_map.h (file contents):
Revision 1.23 by root, Fri Mar 26 01:04:44 2010 UTC vs.
Revision 1.25 by root, Tue Apr 13 02:39:53 2010 UTC

25#ifndef RANDOM_MAP_H 25#ifndef RANDOM_MAP_H
26#define RANDOM_MAP_H 26#define RANDOM_MAP_H
27 27
28#include "util.h" 28#include "util.h"
29 29
30struct random_map_params 30struct random_map_params : zero_initialised
31{ 31{
32 char wallstyle[512]; 32 char wallstyle[512];
33 char miningstyle[512];
33 char wall_name[512]; 34 char wall_name[512];
34 char floorstyle[512]; 35 char floorstyle[512];
35 char monsterstyle[512]; 36 char monsterstyle[512];
36 char treasurestyle[512]; 37 char treasurestyle[512];
37 char layoutstyle[512]; 38 char layoutstyle[512];
194 ::swap (layout.ptr->w , ptr->w ); 195 ::swap (layout.ptr->w , ptr->w );
195 ::swap (layout.ptr->h , ptr->h ); 196 ::swap (layout.ptr->h , ptr->h );
196 } 197 }
197}; 198};
198 199
200// utility functions, to use rmg_rndm instead of rndm.
201static inline int
202rmg_find_free_spot (const object *ob, maptile *m, int x, int y, int start, int stop)
203{
204 swap (rmg_rndm, rndm);
205 int i = find_free_spot (ob, m, x, y, start, stop);
206 swap (rmg_rndm, rndm);
207 return i;
208}
209
199#endif 210#endif
200 211

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines