From 132864ec8d6e0ede4f94fad8940934c3f6710827 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 4 Oct 2022 00:00:52 +1100 Subject: [PATCH] - Duke: Fix issue stemming from `- only use the floatified version of findplayer.`. * This value must be floored. * Fixes E2L1's space ship projectile timing. --- source/games/duke/src/actors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/duke/src/actors.cpp b/source/games/duke/src/actors.cpp index 662cd9108..2f5c403a0 100644 --- a/source/games/duke/src/actors.cpp +++ b/source/games/duke/src/actors.cpp @@ -5215,7 +5215,7 @@ void movefta(void) if (xx < 30000 / 16.) { act->timetosleep++; - if (act->timetosleep >= xx / 16.) + if (act->timetosleep >= int(xx / 16.)) { if (badguy(act)) {