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

Comparing deliantra/server/server/main.C (file contents):
Revision 1.59 by root, Tue Dec 26 08:55:00 2006 UTC vs.
Revision 1.60 by root, Wed Dec 27 09:28:02 2006 UTC

1132 1132
1133 /* We save the maps - it may not be intuitive why, but if there are unique 1133 /* We save the maps - it may not be intuitive why, but if there are unique
1134 * items, we need to save the map so they get saved off. Perhaps we should 1134 * items, we need to save the map so they get saved off. Perhaps we should
1135 * just make a special function that only saves the unique items. 1135 * just make a special function that only saves the unique items.
1136 */ 1136 */
1137 for (m = first_map; m; m = next) 1137 for_all_maps (m)
1138 {
1139 next = m->next;
1140
1141 if (m->in_memory == MAP_IN_MEMORY) 1138 if (m->in_memory == MAP_IN_MEMORY)
1142 {
1143 /* If we want to reuse the temp maps, swap it out (note that will also 1139 /* If we want to reuse the temp maps, swap it out (note that will also
1144 * update the log file. 1140 * update the log file.
1145 */ 1141 */
1146
1147 swap_map (m); 1142 swap_map (m);
1148 }
1149 }
1150 1143
1151 write_todclock (); /* lets just write the clock here */ 1144 write_todclock (); /* lets just write the clock here */
1152} 1145}
1153 1146
1154/* clean up everything before exiting */ 1147/* clean up everything before exiting */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines