From 8b3e5c8d45a03638ebdbf2d16aae705c7a01d9c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= <pali.rohar@gmail.com> Date: Sun, 20 May 2012 15:11:02 +0200 Subject: [PATCH] Fixed compilation of non debug version --- src/unit/unit_draw.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/unit/unit_draw.cpp b/src/unit/unit_draw.cpp index 8cc7cb618..cddb13626 100644 --- a/src/unit/unit_draw.cpp +++ b/src/unit/unit_draw.cpp @@ -666,7 +666,11 @@ void ShowOrder(const CUnit &unit) if (unit.Destroyed) { return; } - if (!DEBUG && unit.Player != ThisPlayer && !ThisPlayer->IsAllied(unit)) { + if (!ThisPlayer->IsAllied(unit) +#ifndef DEBUG + && unit.Player != ThisPlayer +#endif + ) { return; } // Get current position