From 16e1042541d9e0848cfefaf4a73d0860d1475b6c Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 8 Aug 2017 23:40:37 +0200 Subject: [PATCH] Ensure that the disciple can not block the electro factory Bug discovered here: https://youtu.be/MyWZj20-Iok?t=7m21s --- src/obstacle.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/obstacle.cxx b/src/obstacle.cxx index a7d825e..369b2ba 100644 --- a/src/obstacle.cxx +++ b/src/obstacle.cxx @@ -1554,7 +1554,8 @@ void CDecor::AjustObject (Sint32 rank, Sint32 icon, POINT cel, Sint32 * pBits) { if ( cel.x > 0 && cel.x % 2 == 0 && cel.y % 2 == 1 && - (m_decor[(cel.x - 2) / 2][cel.y / 2].objectIcon == 100 || // usine ? + (m_decor[(cel.x - 2) / 2][cel.y / 2].objectIcon == 17 || // factory + m_decor[(cel.x - 2) / 2][cel.y / 2].objectIcon == 100 || m_decor[(cel.x - 2) / 2][cel.y / 2].objectIcon == 102 || m_decor[(cel.x - 2) / 2][cel.y / 2].objectIcon == 104 || m_decor[(cel.x - 2) / 2][cel.y / 2].objectIcon == 115))