rename to toggleFormat
authorRudolf Polzer <divverent@alientrap.org>
Sun, 10 Oct 2010 11:54:01 +0000 (13:54 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 10 Oct 2010 11:54:01 +0000 (13:54 +0200)
radiant/brushmodule.cpp
radiant/brushmodule.h
radiant/map.cpp

index da508c0..21cec0e 100644 (file)
@@ -92,10 +92,10 @@ void Brush_registerPreferencesPage()
 
 void Brush_unlatchPreferences()
 {
-       Brush_toggleProjection(0);
+       Brush_toggleFormat(0);
 }
 
-void Brush_toggleProjection(int i)
+void Brush_toggleFormat(int i)
 {
        if(g_showAlternativeTextureProjectionOption)
        {
@@ -105,7 +105,7 @@ void Brush_toggleProjection(int i)
        }
 }
 
-int Brush_toggleProjectionCount()
+int Brush_toggleFormatCount()
 {
        if(g_showAlternativeTextureProjectionOption)
                return 2;
index 4a0e40e..ac89a89 100644 (file)
@@ -24,7 +24,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
 void Brush_clipperColourChanged();
 void Brush_unlatchPreferences();
-int Brush_toggleProjectionCount();
-void Brush_toggleProjection(int i);
+int Brush_toggleFormatCount();
+void Brush_toggleFormat(int i);
 
 #endif
index 86b1123..ece542b 100644 (file)
@@ -1046,10 +1046,10 @@ void Map_LoadFile (const char *filename)
     if(format->wrongFormat)
     {
       // try toggling BrushPrimitives
-      for(i = 1; i < Brush_toggleProjectionCount(); ++i)
+      for(i = 1; i < Brush_toggleFormatCount(); ++i)
       {
        Map_Free();
-       Brush_toggleProjection(i);
+       Brush_toggleFormat(i);
        g_map.m_name = filename;
        Map_UpdateTitle(g_map);
        g_map.m_resource = GlobalReferenceCache().capture(g_map.m_name.c_str());