Skip to content

Commit

Permalink
update a point version number. official release 16.0.1 (#55)
Browse files Browse the repository at this point in the history
* Fix the issue of the length of half time caused by slow_down_factor.

* update a point version number. official release 16.0.1
  • Loading branch information
hidehisaakiyama authored Jul 20, 2021
1 parent 1b5076d commit dfd4209
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
2021-07-20 Hidehisa Akiyama <[email protected]>

* 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 <[email protected]>

* NEWS:
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

AC_PREREQ(2.61)
LT_PREREQ([2.2])
AC_INIT([RCSSServer],[16.0.0],[[email protected]],[rcssserver])
AC_INIT([RCSSServer],[16.0.1],[[email protected]],[rcssserver])

#AM_INIT_AUTOMAKE([gnu 1.7.2 check-news dist-bzip2 dist-zip])
AM_INIT_AUTOMAKE([gnu 1.7.2 check-news foreign])
Expand Down
6 changes: 3 additions & 3 deletions src/serverparam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 )
Expand Down

0 comments on commit dfd4209

Please sign in to comment.