… | |
… | |
105 | cf::override 1; |
105 | cf::override 1; |
106 | }, |
106 | }, |
107 | ; |
107 | ; |
108 | |
108 | |
109 | cf::async_ext { |
109 | cf::async_ext { |
110 | my $schedule_interval = Coro::Event->timer (after => 1); |
110 | $Coro::current->{desc} = "worldmap updater"; |
111 | |
111 | |
112 | while () { |
112 | while () { |
113 | $schedule_interval->interval ($WORLDMAP_UPDATE_INTERVAL); |
113 | Coro::EV::timer_once $WORLDMAP_UPDATE_INTERVAL; |
114 | $schedule_interval->next; |
|
|
115 | |
114 | |
116 | cf::get_slot 0.01, -50, "worldmap update"; |
115 | cf::get_slot 0.01, -50, "worldmap update"; |
117 | |
116 | |
118 | ++$GENCOUNT; |
117 | ++$GENCOUNT; |
119 | |
118 | |