--- deliantra/server/ext/commands.ext 2010/04/08 17:36:53 1.75 +++ deliantra/server/ext/commands.ext 2010/04/12 05:22:37 1.76 @@ -250,10 +250,8 @@ return $ob->reply (undef, sprintf "Output rate is presently %dbps.", $ob->contr->ns->max_rate / $cf::TICK) unless $arg > 0; - # minimum is 5k/s - # maximum is 100k/s, this should be configurable - $ob->contr->ns->max_rate ((List::Util::max 5000, List::Util::min 100000, $arg) * $cf::TICK); - $ob->reply (undef, sprintf "Output rate now set to %dbps.", $ob->contr->ns->max_rate / $cf::TICK); + $ob->contr->ns->max_rate ((cf::clamp $arg, $OUTPUT_RATE_MIN, $OUTPUT_RATE_MAX) * $TICK); + $ob->reply (undef, sprintf "Output rate now set to %dbps.", $ob->contr->ns->max_rate / $TICK); }; cf::register_command 'output-count' => sub {