From dfd420906b5be3971152135f3147f118b285699b Mon Sep 17 00:00:00 2001 From: Hidehisa Akiyama <522630+hidehisaakiyama@users.noreply.github.com> Date: Tue, 20 Jul 2021 17:36:50 +0900 Subject: [PATCH] update a point version number. official release 16.0.1 (#55) * Fix the issue of the length of half time caused by slow_down_factor. * update a point version number. official release 16.0.1 --- ChangeLog | 9 +++++++++ NEWS | 3 +++ configure.ac | 2 +- src/serverparam.cpp | 6 +++--- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 65f03e0..04d0b64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2021-07-20 Hidehisa Akiyama + + * NEWS: + * configure.ac: + - update a minor version number. Official release 16.0.1 + + * src/serverparam.cpp: + - fix a bug of the length of half time caused by slow_down_factor. + 2020-02-03 Hidehisa Akiyama * NEWS: diff --git a/NEWS b/NEWS index 382ce23..6e481d7 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +[16.0.1] + * Fix a bug of the length of half time caused by slow_down_factor. + [16.0.0] * New parameters: - server::illegal_defense_duration (default value: 20) diff --git a/configure.ac b/configure.ac index 9c4613e..b38d7c3 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ(2.61) LT_PREREQ([2.2]) -AC_INIT([RCSSServer],[16.0.0],[sserver-admin@users.sf.net],[rcssserver]) +AC_INIT([RCSSServer],[16.0.1],[sserver-admin@users.sf.net],[rcssserver]) #AM_INIT_AUTOMAKE([gnu 1.7.2 check-news dist-bzip2 dist-zip]) AM_INIT_AUTOMAKE([gnu 1.7.2 check-news foreign]) diff --git a/src/serverparam.cpp b/src/serverparam.cpp index 3de3bf9..f4d358a 100644 --- a/src/serverparam.cpp +++ b/src/serverparam.cpp @@ -552,9 +552,6 @@ ServerParam::setSlowDownFactor() { M_slow_down_factor = std::max( 1, M_slow_down_factor ); - M_half_time = static_cast< int >( M_raw_half_time * getHalfTimeScaler() + 0.5 ); - M_extra_half_time = static_cast< int >( M_raw_extra_half_time * getHalfTimeScaler() + 0.5 ); - M_simulator_step *= M_slow_down_factor; M_sense_body_step *= M_slow_down_factor; M_send_vi_step *= M_slow_down_factor; @@ -569,6 +566,9 @@ ServerParam::setSlowDownFactor() lcm( M_send_vi_step, lcm( std::max( M_synch_see_offset, 1 ), ( M_synch_mode ? M_synch_offset : 1 ) ) ) ) ) ) ); + + M_half_time = static_cast< int >( M_raw_half_time * getHalfTimeScaler() + 0.5 ); + M_extra_half_time = static_cast< int >( M_raw_extra_half_time * getHalfTimeScaler() + 0.5 ); } ServerParam::ServerParam( const std::string & progname )