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

Comparing deliantra/server/common/map.C (file contents):
Revision 1.187 by root, Thu Apr 15 21:49:15 2010 UTC vs.
Revision 1.188 by root, Fri Apr 16 02:32:25 2010 UTC

422 return false; 422 return false;
423 423
424 return freezer.save (path); 424 return freezer.save (path);
425} 425}
426 426
427maptile::maptile () 427void
428maptile::init ()
428{ 429{
429 in_memory = MAP_SWAPPED; 430 in_memory = MAP_SWAPPED;
430 431
431 /* The maps used to pick up default x and y values from the 432 /* The maps used to pick up default x and y values from the
432 * map archetype. Mimic that behaviour. 433 * map archetype. Mimic that behaviour.
433 */ 434 */
434 width = 16; 435 width = 16;
435 height = 16; 436 height = 16;
436 timeout = 300; 437 timeout = 300;
437 max_items = MAX_ITEM_PER_ACTION; 438 max_items = MAX_ITEM_PER_ACTION;
438 max_volume = 2000000; // 2m³ 439 max_volume = 2000000; // 2m³
439}
440
441maptile::maptile (int w, int h)
442{
443 in_memory = MAP_SWAPPED;
444
445 width = w;
446 height = h;
447 reset_timeout = 0; 440 reset_timeout = 0;
448 timeout = 300;
449 enter_x = 0; 441 enter_x = 0;
450 enter_y = 0; 442 enter_y = 0;
443}
444
445maptile::maptile ()
446{
447 init ();
448}
449
450maptile::maptile (int w, int h)
451{
452 init ();
453
454 width = w;
455 height = h;
451 456
452 alloc (); 457 alloc ();
453} 458}
454 459
455/* 460/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines