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

Comparing deliantra/server/server/cfperl.xs (file contents):
Revision 1.301 by root, Mon Sep 22 23:56:14 2008 UTC vs.
Revision 1.302 by root, Mon Sep 22 23:57:48 2008 UTC

2395} 2395}
2396 2396
2397void 2397void
2398maptile::create_region_treasure () 2398maptile::create_region_treasure ()
2399 CODE: 2399 CODE:
2400{
2401 for (int x = 0; x < THIS->width; ++x) 2400 for (int x = 0; x < THIS->width; ++x)
2402 for (int y = 0; y < THIS->height; ++y) 2401 for (int y = 0; y < THIS->height; ++y)
2403 { 2402 {
2404 region *rgn = THIS->region (x, y); 2403 region *rgn = THIS->region (x, y);
2405 2404
2406 //fprintf (stderr, "%d,%d %f %p\n", x, y, rgn->treasure_density,rgn->treasure);//D 2405 //fprintf (stderr, "%d,%d %f %p\n", x, y, rgn->treasure_density,rgn->treasure);//D
2407 if (object *op = THIS->at (x, y).top) 2406 if (object *op = THIS->at (x, y).top)
2408 if (rgn->treasure && rndm () < rgn->treasure_density) 2407 if (rgn->treasure && rndm () < rgn->treasure_density)
2409 create_treasure (rgn->treasure, op, GT_ENVIRONMENT, THIS->difficulty); 2408 create_treasure (rgn->treasure, op, GT_ENVIRONMENT, THIS->difficulty);
2410 } 2409 }
2411}
2412 2410
2413int out_of_map (maptile *map, int x, int y) 2411int out_of_map (maptile *map, int x, int y)
2414 2412
2415void 2413void
2416trigger (maptile *map, long connection, bool state = true) 2414trigger (maptile *map, long connection, bool state = true)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines