AuroraSim: More tiny bits to help life be normal on the grid.

This commit is contained in:
Lirusaito
2013-01-20 23:22:53 -05:00
parent fa8e1f033b
commit 36e6946c96
6 changed files with 18 additions and 7 deletions

View File

@@ -539,6 +539,7 @@ LLVector3 LLNetMap::globalPosToView(const LLVector3d& global_pos, BOOL rotated)
LLVector3 pos_local;
pos_local.setVec(relative_pos_global); // convert to floats from doubles
mPixelsPerMeter = mScale / REGION_WIDTH_METERS;
pos_local.mV[VX] *= mPixelsPerMeter;
pos_local.mV[VY] *= mPixelsPerMeter;
// leave Z component in meters