Fix coordinate bits for world mwm.

This commit is contained in:
vng 2011-10-03 18:58:47 +03:00 committed by Alex Zolotarev
parent 1e40e08c61
commit a94369c4e2

View file

@ -523,7 +523,7 @@ namespace feature
DataHeader header;
uint32_t coordBits = 27;
if (isWorld)
coordBits -= (scales::GetUpperScale() - scales::GetUpperWorldScale());
coordBits -= ((scales::GetUpperScale() - scales::GetUpperWorldScale()) / 2);
header.SetCodingParams(serial::CodingParams(coordBits, midPoints.GetCenter()));
header.SetScales(isWorld ? g_arrWorldScales : g_arrCountryScales);