diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2023-12-05 23:57:19 +0000 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2023-12-05 23:57:19 +0000 |
commit | 9a853e73eff07b687508f14e80608c8b1c0909f3 (patch) | |
tree | 2f3e7723afd304b014f28d7390ad0c5944afa547 /src/fastfwd.c | |
parent | 006279ab18968fc4e4e4314cc2687d59d5a236b0 (diff) |
Add fast-forward gaps for checking item spawns
This complicates things greatly! Therefore, it's a separate commit to
the baseline fast-forward functionality, to keep the confusing stuff
relatively contained.
Diffstat (limited to 'src/fastfwd.c')
-rw-r--r-- | src/fastfwd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fastfwd.c b/src/fastfwd.c index b3098d4..b5b7e6a 100644 --- a/src/fastfwd.c +++ b/src/fastfwd.c @@ -66,6 +66,11 @@ void fastfwd(float seconds, float timescale) { skiprate = timescale; } +void fastfwd_add(float seconds, float timescale) { + skiptime += seconds; + skiprate = timescale; +} + static inline void *find_eng(void *runframe) { #ifdef _WIN32 const uchar *insns = (const uchar *)runframe; |