Hardcoded categories spring ignores.

Hardcoded categories spring ignores.

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Hardcoded categories spring ignores.

Post by lurker »

Is there any reason not to go ahead and remove this block of code?

Code: Select all

	// Remove some categories that we don't think we need since we have too few of them
	if (name.find("ctrl") != std::string::npos
	 || name.find("arm") != std::string::npos
	 || name.find("core") != std::string::npos
	 || name.find("level") != std::string::npos
	 || name.find("energy") != std::string::npos
	 || name.find("storage") != std::string::npos
	 || name.find("defensive") != std::string::npos
	 || name.find("extractor") != std::string::npos
	 || name.find("metal") != std::string::npos
	 || name.find("torp") != std::string::npos)
		return 0;
Post Reply

Return to “Engine”