Source/Conversion.cpp
VREF CvtToVRef(VNUM hOldVnum)
{
    Area*   nArea       = CvtFindArea(hOldVnum);
    if(!nArea)
        return MakeVRef(0,0);

    VNUM    nAnum       = nArea->mANum;
    VNUM    nSubVnum    = hOldVnum - nArea->mMinOldVnum;

    return MakeVRef(nAnum, nSubVnum);
}
//$$$ Old Form $$$--------------------------
//Area XYZ from vnum 200-500
//Object in XYZ is Vnum 205
//------------------------------------------
//
//$$$ In New Form $$$-----------------------
//Area XYZ has a unique area number
//VRef to Object is AreaNumber|VirtualNumber
//Object in XYZ is now SubVnum 5
//------------------------------------------
Old Form
Area XYZ from vnum 200-500
Object in XYZ is Vnum 205

In New Form
Area XYZ has a unique area number
VRef to Object is AreaNumber|VirtualNumber
Object in XYZ is now SubVnum 5
Old Form Area XYZ from vnum 200 - 500 Object in XYZ is Vnum 205 In New Form Area XYZ has a unique area number VRef to Object is AreaNumber|VirtualNumber Object in XYZ is now SubVnum 5
VREF CvtToVRef(VNUM hOldVnum)
{
    Area*   nArea       = CvtFindArea(hOldVnum);
    if(!nArea)
        return MakeVRef(0,0);
    VNUM    nAnum       = nArea->mANum;
    VNUM    nSubVnum    = hOldVnum - nArea->mMinOldVnum;
    return MakeVRef(nAnum, nSubVnum);
}
VREF CvtToVRef ( VNUM hOldVnum ) { Area * nArea = CvtFindArea ( hOldVnum ) ; if ( ! nArea ) return MakeVRef ( 0 , 0 ) ; VNUM nAnum = nArea -> mANum ; VNUM nSubVnum = hOldVnum - nArea -> mMinOldVnum ; return MakeVRef ( nAnum , nSubVnum ) ; }
$$$ Old Form $$$
Area XYZ from vnum 200-500
Object in XYZ is Vnum 205
$$$ Old Form $$$ Area XYZ from vnum 200 - 500 Object in XYZ is Vnum 205