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

Comparing deliantra/server/server/build_map.C (file contents):
Revision 1.7 by root, Thu Sep 14 22:34:03 2006 UTC vs.
Revision 1.8 by root, Sat Sep 16 22:24:13 2006 UTC

30 30
31/** 31/**
32 * Check if objects on a square interfere with building 32 * Check if objects on a square interfere with building
33 */ 33 */
34int 34int
35can_build_over (mapstruct *map, object *tmp, short x, short y) 35can_build_over (maptile *map, object *tmp, short x, short y)
36{ 36{
37 object *ob; 37 object *ob;
38 38
39 ob = GET_MAP_OB (map, x, y); 39 ob = GET_MAP_OB (map, x, y);
40 while (ob) 40 while (ob)
73 73
74/** 74/**
75 * Erases marking runes at specified location 75 * Erases marking runes at specified location
76 */ 76 */
77void 77void
78remove_marking_runes (mapstruct *map, short x, short y) 78remove_marking_runes (maptile *map, short x, short y)
79{ 79{
80 object *rune; 80 object *rune;
81 object *next; 81 object *next;
82 82
83 rune = GET_MAP_OB (map, x, y); 83 rune = GET_MAP_OB (map, x, y);
99 * \return 'connected' value with no item, or -1 if failure. 99 * \return 'connected' value with no item, or -1 if failure.
100 * 100 *
101 * Tries 1000 random values, then returns -1. 101 * Tries 1000 random values, then returns -1.
102 */ 102 */
103int 103int
104find_unused_connected_value (mapstruct *map) 104find_unused_connected_value (maptile *map)
105{ 105{
106 int connected = 0; 106 int connected = 0;
107 int itest = 0; 107 int itest = 0;
108 oblinkpt *obp; 108 oblinkpt *obp;
109 109
208 208
209/** 209/**
210 * Returns first item of type WALL. 210 * Returns first item of type WALL.
211 */ 211 */
212object * 212object *
213get_wall (mapstruct *map, int x, int y) 213get_wall (maptile *map, int x, int y)
214{ 214{
215 object *wall; 215 object *wall;
216 216
217 wall = GET_MAP_OB (map, x, y); 217 wall = GET_MAP_OB (map, x, y);
218 while (wall && (WALL != wall->type)) 218 while (wall && (WALL != wall->type))
231 * Basically it ensures the correct wall is put where needed. 231 * Basically it ensures the correct wall is put where needed.
232 * 232 *
233 * Note: x & y must be valid map coordinates. 233 * Note: x & y must be valid map coordinates.
234 */ 234 */
235void 235void
236fix_walls (mapstruct *map, int x, int y) 236fix_walls (maptile *map, int x, int y)
237{ 237{
238 int connect; 238 int connect;
239 object *wall; 239 object *wall;
240 char archetype[MAX_BUF]; 240 char archetype[MAX_BUF];
241 char *underscore; 241 char *underscore;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines