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.345 by root, Tue Aug 28 19:30:11 2007 UTC vs.
Revision 1.346 by root, Tue Aug 28 19:38:40 2007 UTC

575 if (1) { 575 if (1) {
576 $md5 = 576 $md5 =
577 join "\x00", 577 join "\x00",
578 $processversion, 578 $processversion,
579 map { 579 map {
580 Coro::cede; 580 cf::cede_to_tick;
581 ($src->[$_], Digest::MD5::md5_hex $data[$_]) 581 ($src->[$_], Digest::MD5::md5_hex $data[$_])
582 } 0.. $#$src; 582 } 0.. $#$src;
583 583
584 584
585 my $dbmd5 = db_get cache => "$id/md5"; 585 my $dbmd5 = db_get cache => "$id/md5";
1322 1322
1323 aio_mkdir playerdir $pl, 0770; 1323 aio_mkdir playerdir $pl, 0770;
1324 $pl->{last_save} = $cf::RUNTIME; 1324 $pl->{last_save} = $cf::RUNTIME;
1325 1325
1326 $pl->save_pl ($path); 1326 $pl->save_pl ($path);
1327 Coro::cede; 1327 cf::cede_to_tick;
1328} 1328}
1329 1329
1330sub new($) { 1330sub new($) {
1331 my ($login) = @_; 1331 my ($login) = @_;
1332 1332
1859 $self->in_memory (cf::MAP_LOADING); 1859 $self->in_memory (cf::MAP_LOADING);
1860 1860
1861 $self->alloc; 1861 $self->alloc;
1862 1862
1863 $self->pre_load; 1863 $self->pre_load;
1864 Coro::cede; 1864 cf::cede_to_tick;
1865 1865
1866 $self->_load_objects ($self->{load_path}, 1) 1866 $self->_load_objects ($self->{load_path}, 1)
1867 or return; 1867 or return;
1868 1868
1869 $self->set_object_flag (cf::FLAG_OBJ_ORIGINAL, 1) 1869 $self->set_object_flag (cf::FLAG_OBJ_ORIGINAL, 1)
1875 $self->clear_unique_items; 1875 $self->clear_unique_items;
1876 $self->_load_objects ($uniq, 0); 1876 $self->_load_objects ($uniq, 0);
1877 } 1877 }
1878 } 1878 }
1879 1879
1880 Coro::cede; 1880 cf::cede_to_tick;
1881 # now do the right thing for maps 1881 # now do the right thing for maps
1882 $self->link_multipart_objects; 1882 $self->link_multipart_objects;
1883 $self->difficulty ($self->estimate_difficulty) 1883 $self->difficulty ($self->estimate_difficulty)
1884 unless $self->difficulty; 1884 unless $self->difficulty;
1885 Coro::cede; 1885 cf::cede_to_tick;
1886 1886
1887 unless ($self->{deny_activate}) { 1887 unless ($self->{deny_activate}) {
1888 $self->decay_objects; 1888 $self->decay_objects;
1889 $self->fix_auto_apply; 1889 $self->fix_auto_apply;
1890 $self->update_buttons; 1890 $self->update_buttons;
1891 Coro::cede; 1891 cf::cede_to_tick;
1892 $self->set_darkness_map; 1892 $self->set_darkness_map;
1893 Coro::cede; 1893 cf::cede_to_tick;
1894 $self->activate; 1894 $self->activate;
1895 } 1895 }
1896 1896
1897 $self->{last_save} = $cf::RUNTIME; 1897 $self->{last_save} = $cf::RUNTIME;
1898 $self->last_access ($cf::RUNTIME); 1898 $self->last_access ($cf::RUNTIME);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines