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

Comparing deliantra/server/ext/rent.ext (file contents):
Revision 1.10 by root, Tue Jun 26 04:56:10 2007 UTC vs.
Revision 1.11 by root, Thu Sep 13 08:35:24 2007 UTC

44 $pl->{rent}{balance} += $offline + $online; 44 $pl->{rent}{balance} += $offline + $online;
45} 45}
46 46
47sub pay_balance { 47sub pay_balance {
48 my ($pl) = @_; 48 my ($pl) = @_;
49
50 cf::cede_to_tick;
49 51
50 update_balance $pl; 52 update_balance $pl;
51 53
52 return unless $pl->{rent}{balance} > 0; 54 return unless $pl->{rent}{balance} > 0;
53 55
186our $RENT_TIMER = Event->timer ( 188our $RENT_TIMER = Event->timer (
187 reentrant => 0, 189 reentrant => 0,
188 after => 60, 190 after => 60,
189 interval => 3600, 191 interval => 3600,
190 data => cf::WF_AUTOCANCEL, 192 data => cf::WF_AUTOCANCEL,
191 cb => sub { 193 cb => Coro::unblock_sub {
192 pay_balance $_ for cf::player::list; 194 pay_balance $_ for cf::player::list;
193 }, 195 },
194); 196);
195 197

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines