diff options
Diffstat (limited to 'Magic2/MagicDoc.cpp')
-rw-r--r-- | Magic2/MagicDoc.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Magic2/MagicDoc.cpp b/Magic2/MagicDoc.cpp index f0c7929..d794aa2 100644 --- a/Magic2/MagicDoc.cpp +++ b/Magic2/MagicDoc.cpp @@ -107,7 +107,7 @@ void MagicDoc::Exec(Command* command) { int nredo = commands.size() - nundo; - + while (nredo) { delete commands.removeIndex(commands.size()-1); nredo--; @@ -208,7 +208,7 @@ void MagicDoc::Dump(CDumpContext& dc) const // +--------------------------------------------------------------------+ -BOOL MagicDoc::OnSaveDocument(LPCTSTR path_name) +BOOL MagicDoc::OnSaveDocument(LPCTSTR path_name) { SetModifiedFlag(FALSE); @@ -220,7 +220,7 @@ BOOL MagicDoc::OnSaveDocument(LPCTSTR path_name) return TRUE; } -BOOL MagicDoc::OnOpenDocument(LPCTSTR path_name) +BOOL MagicDoc::OnOpenDocument(LPCTSTR path_name) { FILE* fp = fopen(path_name, "rb"); if (!fp) { @@ -464,7 +464,7 @@ int LoadBuffer(const char* filename, BYTE*& buf, bool null_terminate) // +--------------------------------------------------------------------+ -void MagicDoc::DeleteContents() +void MagicDoc::DeleteContents() { CDocument::DeleteContents(); InitCommandStack(); @@ -483,7 +483,7 @@ void MagicDoc::DeleteContents() int LoadTexture(const char* fname, Bitmap*& bitmap, int type) { int result = 0; - + if (!fname || !*fname) return result; @@ -586,7 +586,7 @@ int LoadAlpha(const char* name, Bitmap& bitmap, int type) // first try to load from current directory: bool loaded = false; - + if (pcx_file) loaded = pcx.Load(filename) == PCX_OK; @@ -610,7 +610,7 @@ int LoadAlpha(const char* name, Bitmap& bitmap, int type) } -void MagicDoc::OnSurfaceOptimize() +void MagicDoc::OnSurfaceOptimize() { if (solid && solid->GetModel()) { solid->GetModel()->OptimizeMesh(); @@ -619,12 +619,12 @@ void MagicDoc::OnSurfaceOptimize() } } -void MagicDoc::OnUpdateSurfaceOptimize(CCmdUI* pCmdUI) +void MagicDoc::OnUpdateSurfaceOptimize(CCmdUI* pCmdUI) { pCmdUI->Enable(solid && solid->GetModel()); } -void MagicDoc::OnSurfaceExplode() +void MagicDoc::OnSurfaceExplode() { if (solid && solid->GetModel()) { solid->GetModel()->ExplodeMesh(); @@ -633,7 +633,7 @@ void MagicDoc::OnSurfaceExplode() } } -void MagicDoc::OnUpdateSurfaceExplode(CCmdUI* pCmdUI) +void MagicDoc::OnUpdateSurfaceExplode(CCmdUI* pCmdUI) { pCmdUI->Enable(solid && solid->GetModel()); } |