diff -r 67cfa6e6b863 -r 7ced3733ba60 xml.cpp --- a/xml.cpp Tue Oct 24 15:36:38 2006 +0000 +++ b/xml.cpp Mon Oct 30 12:39:37 2006 +0000 @@ -51,14 +51,18 @@ const QString& eName, const QXmlAttributes& atts ) { QColor col; - //cout << "startElement <"< state="< state="<setVersion(atts.value( "version" )); - if (!mc->checkVersion()) + if (!checkVersion(atts.value("version"))) QMessageBox::warning( 0, "Warning: Version Problem" , "

Map is newer than VYM

" "

The map you are just trying to load was " @@ -66,6 +70,8 @@ "The version of this vym is " __VYM_VERSION ". If you run into problems after pressing " "the ok-button below, updating vym should help."); + else + mc->setVersion(atts.value( "version" )); } if (loadMode==NewMap)