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.176 by root, Tue Nov 10 05:11:05 2009 UTC vs.
Revision 1.177 by root, Wed Nov 11 23:27:56 2009 UTC

714//-GPL 714//-GPL
715 715
716bool 716bool
717maptile::_save_header (object_freezer &freezer) 717maptile::_save_header (object_freezer &freezer)
718{ 718{
719#define MAP_OUT(k) freezer.put (KW_ ## k, k) 719#define MAP_OUT(k) freezer.put (KW(k), k)
720#define MAP_OUT2(k,v) freezer.put (KW_ ## k, v) 720#define MAP_OUT2(k,v) freezer.put (KW(k), v)
721 721
722 MAP_OUT2 (arch, "map"); 722 MAP_OUT2 (arch, CS(map));
723 723
724 if (name) MAP_OUT (name); 724 if (name) MAP_OUT (name);
725 MAP_OUT (swap_time); 725 MAP_OUT (swap_time);
726 MAP_OUT (reset_time); 726 MAP_OUT (reset_time);
727 MAP_OUT (reset_timeout); 727 MAP_OUT (reset_timeout);
741 MAP_OUT (width); 741 MAP_OUT (width);
742 MAP_OUT (height); 742 MAP_OUT (height);
743 MAP_OUT (enter_x); 743 MAP_OUT (enter_x);
744 MAP_OUT (enter_y); 744 MAP_OUT (enter_y);
745 745
746 if (msg) freezer.put (KW_msg , KW_endmsg , msg); 746 if (msg) freezer.put (KW(msg) , KW(endmsg) , msg);
747 if (maplore) freezer.put (KW_maplore, KW_endmaplore, maplore); 747 if (maplore) freezer.put (KW(maplore), KW(endmaplore), maplore);
748 748
749 MAP_OUT (outdoor); 749 MAP_OUT (outdoor);
750 MAP_OUT (temp); 750 MAP_OUT (temp);
751 MAP_OUT (pressure); 751 MAP_OUT (pressure);
752 MAP_OUT (humid); 752 MAP_OUT (humid);
761 if (tile_path [1]) MAP_OUT2 (tile_path_2, tile_path [1]); 761 if (tile_path [1]) MAP_OUT2 (tile_path_2, tile_path [1]);
762 if (tile_path [2]) MAP_OUT2 (tile_path_3, tile_path [2]); 762 if (tile_path [2]) MAP_OUT2 (tile_path_3, tile_path [2]);
763 if (tile_path [3]) MAP_OUT2 (tile_path_4, tile_path [3]); 763 if (tile_path [3]) MAP_OUT2 (tile_path_4, tile_path [3]);
764 764
765 freezer.put (this); 765 freezer.put (this);
766 freezer.put (KW_end); 766 freezer.put (KW(end));
767 767
768 return true; 768 return true;
769} 769}
770 770
771bool 771bool

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines