I compiled a CTP_debug version and the game wont load with a debug because of an assert failure
saying the problem is the line in bold
EDIT: (the spacing messed up when i pasted from msvc)
Code:
void World::GetContinent(const MapPoint &pos, sint32 &cont_number, BOOL &is_land) const { BOOL GET_CONTINENT_RETURNED_INCONTINENT_VALUE = FALSE; is_land = !IsWater(pos); cont_number = GetCell(pos)->m_continent_number; if (is_land) { cont_number -= LAND_CONTINENT_START; } if (cont_number < 0) { [b]Assert(GET_CONTINENT_RETURNED_INCONTINENT_VALUE); is_land = FALSE; [/b] cont_number = 0; } if (!is_land && cont_number >= LAND_CONTINENT_START) { Assert(GET_CONTINENT_RETURNED_INCONTINENT_VALUE); is_land = FALSE; cont_number = 0; } }
EDIT: (the spacing messed up when i pasted from msvc)
Comment