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

Comparing deliantra/server/server/shop.C (file contents):
Revision 1.26 by root, Fri Dec 22 16:34:00 2006 UTC vs.
Revision 1.27 by root, Mon Dec 25 14:43:23 2006 UTC

1210 magic_mapping_mark (op, map_mark, 3); 1210 magic_mapping_mark (op, map_mark, 3);
1211 items = (shopinv *) malloc (40 * sizeof (shopinv)); 1211 items = (shopinv *) malloc (40 * sizeof (shopinv));
1212 numallocated = 40; 1212 numallocated = 40;
1213 1213
1214 /* Find all the appropriate items */ 1214 /* Find all the appropriate items */
1215 for (i = 0; i < MAP_WIDTH (op->map); i++) 1215 for (i = 0; i < op->map->width; i++)
1216 { 1216 {
1217 for (j = 0; j < MAP_HEIGHT (op->map); j++) 1217 for (j = 0; j < op->map->height; j++)
1218 { 1218 {
1219 /* magic map code now centers the map on the object at MAGIC_MAP_HALF. 1219 /* magic map code now centers the map on the object at MAGIC_MAP_HALF.
1220 * 1220 *
1221 */ 1221 */
1222 nx = i - op->x + MAGIC_MAP_HALF; 1222 nx = i - op->x + MAGIC_MAP_HALF;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines