From 0a1d29ad1a74d660f55875619f95d371c381cec6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 26 Feb 2020 01:37:42 +0100 Subject: [PATCH] fixup to isElectricLand --- environment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.cpp b/environment.cpp index 06214d0f..e4bebefc 100644 --- a/environment.cpp +++ b/environment.cpp @@ -343,7 +343,7 @@ EX void bfs() { } if(c2->wall == waCharged) elec::havecharge = true; - if(c2->land == laStorms) elec::haveelec = true; + if(isElectricLand(c2)) elec::haveelec = true; if(c2->land == laWhirlpool) havewhat |= HF_WHIRLPOOL; if(c2->land == laWhirlwind) havewhat |= HF_WHIRLWIND;