some code restructure to make position not exit instantly on fail

develop
mizipzor 2010-02-21 01:12:12 +01:00
parent cfddcf38eb
commit 9799a78afe
1 changed files with 28 additions and 28 deletions

@ -16,9 +16,9 @@ int main (void)
if(!DF.Attach())
{
cerr << "DF not found" << endl;
return 1;
}
else
{
if (DF.InitViewAndCursor())
{
int32_t x,y,z;
@ -46,7 +46,7 @@ int main (void)
if(!DF.Detach())
{
cerr << "Can't detach from DF" << endl;
return 1;
}
}
#ifndef LINUX_BUILD
cout << "Done. Press any key to continue" << endl;