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

Comparing deliantra/server/ext/map-random.ext (file contents):
Revision 1.7 by root, Sun Jan 14 22:54:18 2007 UTC vs.
Revision 1.9 by root, Sun Jan 21 21:28:27 2007 UTC

41 41
42sub uniq_path { 42sub uniq_path {
43 undef 43 undef
44} 44}
45 45
46sub load_orig { 46sub load_header_orig {
47 my ($self) = @_; 47 my ($self) = @_;
48 48
49 return unless $self->{random}; 49 return unless $self->{random};
50 50
51 $self->generate_random_map ($self->{random}); 51 $self->generate_random_map ($self->{random});
85 }; 85 };
86} 86}
87 87
88# clean up old temp maps regularly 88# clean up old temp maps regularly
89Event->timer ( 89Event->timer (
90 reentrant => 0,
90 data => cf::WF_AUTOCANCEL, 91 data => cf::WF_AUTOCANCEL,
91 interval => 3600, 92 interval => 3600,
92 after => 600, 93 after => 60,
93 cb => \&clean_random_maps, 94 cb => \&clean_random_maps,
94); 95);
95 96
961 971
97 98

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines