void CLegacyInfoTextureHandler::ToggleMode(const std::string& name) { if (drawMode == NameToDrawMode(name)) return DisableCurrentMode(); SetMode(name); }
void CInfoTextureHandler::ToggleMode(const std::string& name) { if (infoTex->GetMode() == name) return (DisableCurrentMode()); SetMode(name); }