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.22 by root, Fri Mar 26 00:59:21 2010 UTC vs.
Revision 1.25 by root, Tue Apr 13 02:39:53 2010 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 4 * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2001 Mark Wedel & Crossfire Development Team 5 * Copyright (©) 2001 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen 6 * Copyright (©) 1992 Frank Tore Johansen
7 * 7 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 8 * Deliantra is free software: you can redistribute it and/or modify it under
9 * the terms of the Affero GNU General Public License as published by the 9 * the terms of the Affero GNU General Public License as published by the
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