… | |
… | |
422 | return false; |
422 | return false; |
423 | |
423 | |
424 | return freezer.save (path); |
424 | return freezer.save (path); |
425 | } |
425 | } |
426 | |
426 | |
427 | maptile::maptile () |
427 | void |
|
|
428 | maptile::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 | |
|
|
441 | maptile::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 | |
|
|
445 | maptile::maptile () |
|
|
446 | { |
|
|
447 | init (); |
|
|
448 | } |
|
|
449 | |
|
|
450 | maptile::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 | /* |