This commit is contained in:
parent
6f9b74e18c
commit
9aa5011790
2 changed files with 12 additions and 6 deletions
|
@ -98,6 +98,7 @@ CView *V=(CView*)View;
|
|||
/*********************************************************************************/
|
||||
void CMapEditDoc::Render(CMapEditView *View)
|
||||
{
|
||||
|
||||
if (View)
|
||||
Core.Render(View);
|
||||
}
|
||||
|
@ -105,8 +106,10 @@ void CMapEditDoc::Render(CMapEditView *View)
|
|||
/*********************************************************************************/
|
||||
void CMapEditDoc::UpdateAll(CMapEditView *View)
|
||||
{
|
||||
|
||||
if (View)
|
||||
Core.UpdateAll();
|
||||
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
@ -116,7 +119,7 @@ CPoint &XY=Core.GetCursorPos();
|
|||
CString XYStr;
|
||||
pCmdUI->Enable();
|
||||
if (XY.x!=-1 && XY.y!=-1)
|
||||
XYStr.Format( "%d\t%d", XY.x,XY.y);
|
||||
XYStr.Format( "%d %d", XY.x,XY.y);
|
||||
pCmdUI->SetText(XYStr);
|
||||
}
|
||||
|
||||
|
@ -144,7 +147,6 @@ void CMapEditDoc::GUIChanged()
|
|||
{
|
||||
Core.GUIChanged();
|
||||
UpdateAllViews(NULL);
|
||||
// theApp.GetMainWnd()->Invalidate();
|
||||
}
|
||||
|
||||
/*********************************************************************************/
|
||||
|
|
|
@ -90,6 +90,7 @@ void CTileBank::Load(CFile *File,int Version)
|
|||
int ListSize;
|
||||
GFName RootPath=File->GetFilePath();
|
||||
GString FilePath;
|
||||
char FixPath[1024];
|
||||
|
||||
FilePath=RootPath.Drive();
|
||||
FilePath+=RootPath.Dir();
|
||||
|
@ -117,6 +118,9 @@ GString FilePath;
|
|||
FullName.Append(c);
|
||||
}
|
||||
FullName.Upper();
|
||||
_fullpath( FixPath, FullName, 1024);
|
||||
FullName=FixPath;
|
||||
|
||||
CheckFilename(FullName);
|
||||
AddTileSet(FullName);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue