commit c2ebe7d986d8420fa9d5b1eba7a715e0eb40fefd
Author: tpoppins <tpoppins@juno.com>
AuthorDate: Sat Oct 7 20:18:50 2023 -0400
Commit: GitHub <noreply@github.com>
CommitDate: Sat Oct 7 20:18:50 2023 -0400
Disable sector special 17 in gameversion 1.2 (#1554)
* Disable sector special 17 in gameversion 1.2
The first vanilla exec to support sector special 17 (random flicker) was the official v1.4 beta. Disabling it for -gameversion 1.2 solves the desync on DEMO1 of CHURCH.WAD. Fixes #1529.
* Whitespace
---------
Co-authored-by: Turo Lamminen <turol@iki.fi>
---
src/doom/p_spec.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/doom/p_spec.c b/src/doom/p_spec.c
index 3e8d35bd..029f797f 100644
--- a/src/doom/p_spec.c
+++ b/src/doom/p_spec.c
@@ -1466,9 +1466,13 @@ void P_SpawnSpecials (void)
P_SpawnDoorRaiseIn5Mins (sector, i);
break;
- case 17:
- P_SpawnFireFlicker(sector);
- break;
+ case 17:
+ // first introduced in official v1.4 beta
+ if (gameversion > exe_doom_1_2)
+ {
+ P_SpawnFireFlicker(sector);
+ }
+ break;
}
}