From e6784f97afbe3644637c63e0e508c0dae8d7cc2d Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Fri, 1 Jan 2021 23:10:52 +0100 Subject: [PATCH] [hellfire] Bug: Fix firewall damage --- Source/missiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/missiles.cpp b/Source/missiles.cpp index 536d7fa58..06cb90b0d 100644 --- a/Source/missiles.cpp +++ b/Source/missiles.cpp @@ -2434,7 +2434,7 @@ void AddFirewall(int mi, int sx, int sy, int dx, int dy, int midir, char mienemy int i; #ifdef HELLFIRE - missile[mi]._midam = (random_(53, 10) + random_(53, 10) + 2 + (id > 0) ? plr[id]._pLevel : currlevel); // BUGFIX: missing parenthesis around ternary + missile[mi]._midam = (random_(53, 10) + random_(53, 10) + 2 + ((id > 0) ? plr[id]._pLevel : currlevel)); // BUGFIX: missing parenthesis around ternary (fixed) #else missile[mi]._midam = (random_(53, 10) + random_(53, 10) + 2 + plr[id]._pLevel); #endif