devilutionX icon indicating copy to clipboard operation
devilutionX copied to clipboard

Move theme internals into anonymous namespace, misc cleanups

Open ephphatha opened this issue 3 years ago • 0 comments

Was looking at adding a helper for checking if a point matches a given regionId however I don't really want to introduce an unavoidable function call by using the same pattern as IsTileSolid and defining it in path.cpp. Probably move all that into a new header for dungeon tile checks?

This was the intent for CheckThemeObj5 but omitted for now:

bool IsTileInRegion(Point position, int8_t regionId)
{
	return InDungeonBounds(position) && dTransVal[position.x][position.y] == regionId;
}

ephphatha avatar Jul 25 '22 10:07 ephphatha