From dc6895ffdc61de6d73d8867c78a6271cdf0d9db1 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Fri, 22 Sep 2017 11:38:05 +0200 Subject: [PATCH] Check for tower rays in all cases - It fixes the issue #26. It's no longer possible to have rays with an object that is not a tower. You can reenable this bug with --restore-bugs. --- src/fix.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fix.cxx b/src/fix.cxx index 69b8613..44be6f1 100644 --- a/src/fix.cxx +++ b/src/fix.cxx @@ -630,8 +630,10 @@ CDecor::ArrangeObject (Point cel) // Arrange les rayons entre les tours. if ( - m_decor[cel.x / 2][cel.y / 2].objectIcon == 27 || // tour ? - m_decor[cel.x / 2][cel.y / 2].objectIcon == -1) // rien ? + !g_restoreBugs || + (g_restoreBugs && + (m_decor[cel.x / 2][cel.y / 2].objectIcon == 27 || // tour ? + m_decor[cel.x / 2][cel.y / 2].objectIcon == -1))) { for (i = 0; i < 4; i++) {