change assert to a warning

This commit is contained in:
Chris Beck 2014-07-02 18:58:06 -04:00
parent 4deccbf3e8
commit 9f76d9000f

View file

@ -1987,7 +1987,10 @@ void unit::apply_modifications()
bool unit::invisible(const map_location& loc, bool see_all) const
{
assert(loc == get_location());
if (loc != get_location()) {
WRN_UT << "unit::invisible called: id = " << id() << " loc = " << loc << " get_loc = " << get_location() << std::endl;
}
// This is a quick condition to check, and it does not depend on the
// location (so might as well bypass the location-based cache).
if ( get_state(STATE_UNCOVERED) )