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.6 by root, Sat Sep 16 22:24:12 2006 UTC vs.
Revision 1.10 by root, Sun Dec 31 20:46:17 2006 UTC

1
1/* 2/*
2 CrossFire, A Multiplayer game for X-windows 3 CrossFire, A Multiplayer game for X-windows
3 4
4 Copyright (C) 2002 Mark Wedel & Crossfire Development Team 5 Copyright (C) 2002 Mark Wedel & Crossfire Development Team
5 Copyright (C) 1992 Frank Tore Johansen 6 Copyright (C) 1992 Frank Tore Johansen
27#include <rproto.h> 28#include <rproto.h>
28 29
29/* make a map and layout the floor. */ 30/* make a map and layout the floor. */
30 31
31maptile * 32maptile *
32make_map_floor (char **layout, char *floorstyle, RMParms * RP) 33make_map_floor (char **layout, char *floorstyle, random_map_params *RP)
33{ 34{
34 char styledirname[256]; 35 char styledirname[1024];
35 char stylefilepath[256]; 36 char stylefilepath[1024];
36 maptile *style_map = 0; 37 maptile *style_map = 0;
37 object *the_floor; 38 object *the_floor;
38 maptile *newMap = 0; 39 maptile *newMap = 0;
39 40
40 /* allocate the map */ 41 /* allocate the map */
41 newMap = get_empty_map (RP->Xsize, RP->Ysize); 42 newMap = new maptile (RP->Xsize, RP->Ysize);
42 43
43 /* get the style map */ 44 /* get the style map */
44 sprintf (styledirname, "%s", "/styles/floorstyles"); 45 sprintf (styledirname, "%s", "/styles/floorstyles");
45 sprintf (stylefilepath, "%s/%s", styledirname, floorstyle); 46 sprintf (stylefilepath, "%s/%s", styledirname, floorstyle);
46 style_map = find_style (styledirname, floorstyle, -1); 47 style_map = find_style (styledirname, floorstyle, -1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines