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.99 by root, Mon Apr 16 06:23:39 2007 UTC vs.
Revision 1.100 by root, Tue Apr 17 10:06:32 2007 UTC

398bool 398bool
399maptile::_load_objects (object_thawer &f) 399maptile::_load_objects (object_thawer &f)
400{ 400{
401 for (;;) 401 for (;;)
402 { 402 {
403 coroapi::cede_every (1000); // cede once in a while 403 coroapi::cede_to_tick_every (100); // cede once in a while
404 404
405 switch (f.kw) 405 switch (f.kw)
406 { 406 {
407 case KW_arch: 407 case KW_arch:
408 if (object *op = object::read (f, this)) 408 if (object *op = object::read (f, this))
453} 453}
454 454
455bool 455bool
456maptile::_save_objects (object_freezer &f, int flags) 456maptile::_save_objects (object_freezer &f, int flags)
457{ 457{
458 coroapi::cede (); 458 coroapi::cede_to_tick ();
459 459
460 if (flags & IO_HEADER) 460 if (flags & IO_HEADER)
461 _save_header (f); 461 _save_header (f);
462 462
463 if (!spaces) 463 if (!spaces)
482 else if (flags & IO_OBJECTS) 482 else if (flags & IO_OBJECTS)
483 op->write (f); 483 op->write (f);
484 } 484 }
485 } 485 }
486 486
487 coroapi::cede (); 487 coroapi::cede_to_tick ();
488 488
489 return true; 489 return true;
490} 490}
491 491
492bool 492bool

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines