Files
openttd/src/timer/CMakeLists.txt
Patric Stout f5fad88723 Change: base autosaves intervals on real time (instead of game time) (#10655)
There are two fundamental issues with autosave:
- When fast-forwarding, it saves way too often
- When paused, it never saves

Both makes no sense. Autosaves are meant to prevent you from
accidentally losing your work. The emphasis on "your" work.

To solve both issues, the autosave now works on real time. You
can select every 10 / 30 / 60 / 120 minutes, which are similar to
what the setting was in game-months.

When you pause, autosaving will stop. Unless you make any change
to the game; then it will continue to make autosaves, even so
the game is paused. Unpausing / pausing resets this mechanism.
2023-04-27 15:21:29 +00:00

13 lines
239 B
CMake

add_files(
timer_game_calendar.cpp
timer_game_calendar.h
timer_game_realtime.cpp
timer_game_realtime.h
timer_game_tick.cpp
timer_game_tick.h
timer_window.cpp
timer_window.h
timer_manager.h
timer.h
)