Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upConvert more code to use new time classes #23327
Conversation
ZhilkinSerg
self-assigned this
Mar 31, 2018
This comment has been minimized.
This comment has been minimized.
|
Something is bad with time display, when using any watches: game start:3 steps north:more steps: |
ZhilkinSerg
removed their assignment
Mar 31, 2018
ZhilkinSerg
added
the
[C++]
label
Apr 2, 2018
BevapDin
force-pushed the
BevapDin:ryt
branch
Apr 2, 2018
ZhilkinSerg
added
<Enhancement / Feature>
Code: Astyle / Optimization
(P2 - High)
and removed
<Enhancement / Feature>
labels
Apr 2, 2018
ZhilkinSerg
self-assigned this
Apr 3, 2018
This comment has been minimized.
This comment has been minimized.
|
I'm pretty sure there was another commit with fixes to display of seconds after I provided screenshots. Have you removed it? |
BevapDin
force-pushed the
BevapDin:ryt
branch
Apr 4, 2018
This comment has been minimized.
This comment has been minimized.
BevapDin
added some commits
Jan 1, 2018
BevapDin
added some commits
Jan 2, 2018
BevapDin
force-pushed the
BevapDin:ryt
branch
to
c06b59a
Apr 7, 2018
This comment has been minimized.
This comment has been minimized.
It wasn't. I'm switching between two notebooks, one older than the other (a full build takes some hours), and was mixing up the branches. |
ZhilkinSerg
approved these changes
Apr 9, 2018
ZhilkinSerg
removed their assignment
Apr 9, 2018
ZhilkinSerg
merged commit b4a409f
into
CleverRaven:master
Apr 9, 2018
BevapDin
deleted the
BevapDin:ryt
branch
Apr 10, 2018
ZhilkinSerg
reviewed
Apr 11, 2018
| @@ -42,8 +42,7 @@ w_point weather_generator::get_weather( const tripoint &location, const calendar | |||
| double A( raw_noise_4d( x, y, z, modSEED ) * 8.0 ); | |||
| double W; | |||
|
|
|||
| const double now( double( t.turn_of_year() + to_turns<int>( calendar::season_length() ) / 2 ) / | |||
| to_turns<int>( calendar::year_length() ) ); // [0,1) | |||
| const double now( time_past_new_year( t ) / calendar::year_length() ); // [0,1) | |||
This comment has been minimized.
This comment has been minimized.
ZhilkinSerg
Apr 11, 2018
Contributor
@BevapDin: People say weather became somewhat colder (https://discourse.cataclysmdda.org/t/15260) and this line is likely candidate.
Shouldn't it be const double now( ( time_past_new_year( t ) + calendar::season_length() / 2 ) / calendar::year_length() ), actually?
acidia
referenced this pull request
May 25, 2018
Merged
[DONE] Carrion monster growing and reproduction #23833
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.




BevapDin commentedMar 30, 2018
Beside changing the type of some variables to
time_point/time_duration, this changescalendar::print_time:to_string(as it does not print like the curses functions).