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

Comparing deliantra/server/ext/login.ext (file contents):
Revision 1.21 by root, Mon Jan 8 23:36:16 2007 UTC vs.
Revision 1.22 by root, Tue Jan 9 01:28:32 2007 UTC

294 294
295 my $pl = $ob->contr; 295 my $pl = $ob->contr;
296 296
297 # update respawn position 297 # update respawn position
298 $pl->savebed ($bed->map->path, $bed->x, $bed->y); 298 $pl->savebed ($bed->map->path, $bed->x, $bed->y);
299 cf::async { $pl->save };
299 300
300 $pl->killer ("left"); 301 $pl->killer ("left");
301 $ob->check_score; 302 $ob->check_score;
302 303
303 $ob->reply (undef, "In the future, you will wake up here when you die."); 304 $ob->reply (undef, "In the future, you will wake up here when you die.");
340 341
341############################################################################# 342#############################################################################
342 343
343our $SCHEDULE_INTERVAL = 10; # time the player scheduler sleeps between runs 344our $SCHEDULE_INTERVAL = 10; # time the player scheduler sleeps between runs
344our $SAVE_TIMEOUT = 20; # save players every n seconds 345our $SAVE_TIMEOUT = 20; # save players every n seconds
345our $SAVE_INTERVAL = 1.1; # save at max. one player every $SAVE_INTERVAL 346our $SAVE_INTERVAL = 0.5; # save at max. one player every $SAVE_INTERVAL
346 347
347our $SCHEDULER = cf::async_ext { 348our $SCHEDULER = cf::async_ext {
348 while () { 349 while () {
349 Coro::Timer::sleep $SCHEDULE_INTERVAL; 350 Coro::Timer::sleep $SCHEDULE_INTERVAL;
350 351

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines