New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert more code to use new time classes #23327
Merged
+335
−299
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
dd9f318
Change submap::turn_last_touched to be a time_point.
BevapDin 796c541
Replace usage of calendar::turn_of_year with time_past_new_year
BevapDin 741a5a0
Change weather_generator::get_weather to take a time_point
BevapDin c4a8eac
Change weather_generator::get_weather_conditions to take a time_point
BevapDin 21c7b63
Move include of "calendar.h" from "weather.h" into the cpp file.
BevapDin a0a0253
Change get_rot_since to take time_point values.
BevapDin e056ed6
Use time_point and time_duration in messages.cpp
BevapDin a7d75ee
Split calendar::print_time into two functions.
BevapDin e20c012
Move calendar::print_time_just_hour as free function into weather.cpp
BevapDin 3f13be3
Change map actualizing code to use time_duration as parameters.
BevapDin c04fed6
Change map::fill_funnels to take a time_point
BevapDin 6bdf4e4
Change retroactively_fill_from_funnel to take time_point
BevapDin 7940306
Change musical_instrument_actor::description_frequency to time_duration.
BevapDin 93264c8
Change islot_comestible::spoils to be time_duration.
BevapDin 55c929e
Change item::rot to be a time_duration
BevapDin f33a740
Change item::last_rot_check to be a time_point
BevapDin 45d7fe9
Change get_rot_since to return time_duration
BevapDin ad3ef1b
Change item::fridge to be a time_point
BevapDin d7b90c8
Change npc::complaints to contain time_point
BevapDin 3f3d198
Make calendar::print_time free functions.
BevapDin f104c02
Change monster::try_upgrade to use time_point
BevapDin 0cc2e54
Change MonsterGroupEntry::starts and ends to time_duration.
BevapDin acf0c5e
Remove unused includes from "calendar.cpp"
BevapDin fb1d0e9
Use calendar::once_every instead of modulo operator
BevapDin a6ff1b9
Remove redundant explicit conversion from calendar to int
BevapDin 6d42ca4
Change npc::companion_mission_time to be a time_point
BevapDin b2233da
Change npc::last_updated to time_point
BevapDin 8ee1d04
Change npc::restock to be a time_point.
BevapDin 66e34af
Fix compilation for gcc 4.8.4
BevapDin 19986c4
Fix display of seconds in to_string_time_of_day
BevapDin c06b59a
Fix display of seconds in to_string_time_of_day (again)
BevapDin File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
Oops, something went wrong.
ProTip!
Use n and p to navigate between commits in a pull request.
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.