diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-14 19:25:35 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-03-15 11:47:05 -0700 |
commit | 3c4f4f003d9fdbf759e42ced4fece8dd6a506298 (patch) | |
tree | a7cc1d07995a6330c22345935968da40baae6ba9 /src/common/timer.cpp | |
parent | f2757bbfd049777f6fa9089bd33e38f80290c039 (diff) | |
download | tmwa-3c4f4f003d9fdbf759e42ced4fece8dd6a506298.tar.gz tmwa-3c4f4f003d9fdbf759e42ced4fece8dd6a506298.tar.bz2 tmwa-3c4f4f003d9fdbf759e42ced4fece8dd6a506298.tar.xz tmwa-3c4f4f003d9fdbf759e42ced4fece8dd6a506298.zip |
Fix session death and shutdown when bored
Diffstat (limited to 'src/common/timer.cpp')
-rw-r--r-- | src/common/timer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/timer.cpp b/src/common/timer.cpp index ee62df2..b5a2a5e 100644 --- a/src/common/timer.cpp +++ b/src/common/timer.cpp @@ -194,3 +194,8 @@ tick_t file_modified(ZString name) return tick_t(); return tick_t(std::chrono::seconds(buf.st_mtime)); } + +bool has_timers() +{ + return !timer_heap.empty(); +} |