rename to toggleFormat
This commit is contained in:
parent
112586a3cf
commit
182f62c459
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user