From 9a853e73eff07b687508f14e80608c8b1c0909f3 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 5 Dec 2023 23:57:19 +0000 Subject: 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. --- src/fastfwd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/fastfwd.c') 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; -- cgit v1.2.3