Index: ps/trunk/binaries/data/mods/public/simulation/templates/special/target_marker.xml =================================================================== --- ps/trunk/binaries/data/mods/public/simulation/templates/special/target_marker.xml +++ ps/trunk/binaries/data/mods/public/simulation/templates/special/target_marker.xml @@ -4,7 +4,7 @@ true false 0.5 - 1000000 + 10000 0 Index: ps/trunk/source/simulation2/helpers/Grid.h =================================================================== --- ps/trunk/source/simulation2/helpers/Grid.h +++ ps/trunk/source/simulation2/helpers/Grid.h @@ -105,7 +105,7 @@ bool any_set_in_square(int i0, int j0, int i1, int j1) const { #if GRID_BOUNDS_DEBUG - ENSURE(i0 >= 0 && j0 >= 0 && i1 < m_W && j1 < m_H); + ENSURE(i0 >= 0 && j0 >= 0 && i1 <= m_W && j1 <= m_H); #endif for (int j = j0; j < j1; ++j) {