xml.cpp
changeset 218 160459d924a1
parent 200 451cab91e350
child 220 6d4e5cefba7f
     1.1 --- a/xml.cpp	Tue Feb 21 16:18:23 2006 +0000
     1.2 +++ b/xml.cpp	Thu Feb 23 08:37:39 2006 +0000
     1.3 @@ -437,6 +437,19 @@
     1.4  				return false;   // Couldn't read absPos
     1.5  		}           
     1.6  	}           
     1.7 +	if (!a.value( "relPosX").isEmpty() && loadMode==NewMap && branchDepth<9) 
     1.8 +	{
     1.9 +		if (!a.value( "relPosY").isEmpty() ) 
    1.10 +		{
    1.11 +			float fx,fy;
    1.12 +			fx=a.value("relPosX").toFloat (&okx);
    1.13 +			fy=a.value("relPosY").toFloat (&oky);
    1.14 +			if (okx && oky  )
    1.15 +				lastBranch->move2RelPos ((int)fx,(int)fy);
    1.16 +			else
    1.17 +				return false;   // Couldn't read relPos
    1.18 +		}           
    1.19 +	}           
    1.20  	if (!a.value( "scrolled").isEmpty() )
    1.21  		lastBranch->toggleScroll();
    1.22  	if (!a.value( "url").isEmpty() )