ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.122 by root, Tue Jan 2 17:32:24 2007 UTC vs.
Revision 1.126 by root, Tue Jan 2 23:12:47 2007 UTC

1175 $map->{load_path} = $path; 1175 $map->{load_path} = $path;
1176 1176
1177 $map 1177 $map
1178} 1178}
1179 1179
1180sub find_map;
1180sub find_map { 1181sub find_map {
1181 my ($path, $origin) = @_; 1182 my ($path, $origin) = @_;
1182 1183
1183 #warn "find_map<$path,$origin>\n";#d# 1184 #warn "find_map<$path,$origin>\n";#d#
1184 1185
1219 $map->{last_save} = $cf::RUNTIME; 1220 $map->{last_save} = $cf::RUNTIME;
1220 $map->last_access ($cf::RUNTIME); 1221 $map->last_access ($cf::RUNTIME);
1221 1222
1222 if ($map->should_reset) { 1223 if ($map->should_reset) {
1223 $map->reset; 1224 $map->reset;
1225 undef $guard;
1224 $map = find_map $path; 1226 $map = find_map $path
1227 or return;
1225 } 1228 }
1226 1229
1227 $cf::MAP{$key} = $map 1230 $cf::MAP{$key} = $map
1228 } 1231 }
1229} 1232}
2189 or warn "ERROR: unable to write runtime file: $!"; 2192 or warn "ERROR: unable to write runtime file: $!";
2190 })->(); 2193 })->();
2191 }, 2194 },
2192); 2195);
2193 2196
2197END { cf::emergency_save }
2198
21941 21991
2195 2200

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines