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

Comparing deliantra/server/ext/commands.ext (file contents):
Revision 1.37 by root, Sat Mar 17 22:52:32 2007 UTC vs.
Revision 1.38 by root, Sun Mar 18 03:05:40 2007 UTC

274}; 274};
275 275
276cf::register_command 'output-sync' => sub { 276cf::register_command 'output-sync' => sub {
277 my ($ob, $arg) = @_; 277 my ($ob, $arg) = @_;
278 278
279 return $ob->reply (undef, "Output sync time is presently " . $ob->contr->outputs_sync) 279 return $ob->reply (undef, sprintf "Output sync time is presently %.1fs", $ob->contr->outputs_sync * $cf::TICK)
280 unless $arg > 0; 280 unless length $arg;
281 281
282 $ob->contr->outputs_sync ($arg); 282 $ob->contr->outputs_sync ($arg / $cf::TICK);
283 $ob->reply (undef, "Output sync time now set to " . $ob->contr->outputs_sync); 283 $ob->reply (undef, sprintf "Output sync time now set to %.1fs", $ob->contr->outputs_sync * $cf::TICK);
284 284
285 1 285 1
286}; 286};
287 287
288# XXX: This has a bug. After one sets his wimpy level to 0 and resets it to 288# XXX: This has a bug. After one sets his wimpy level to 0 and resets it to

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines