Sync llcommon with Alchemy a bit.
llmath::llround->ll_round LL_ICC->LL_INTELC Add llpredicate Add LL_CPP11 macro Remove llhash Update llinitparam, llsd and all relatives of it.
This commit is contained in:
@@ -1125,7 +1125,7 @@ void LLWorld::updateWaterObjects()
|
||||
// Count the found coastline.
|
||||
F32 new_water_height = water_heights[index];
|
||||
LL_DEBUGS("WaterHeight") << " This is void; counting coastline with water height of " << new_water_height << LL_ENDL;
|
||||
S32 new_water_height_cm = llmath::llround(new_water_height * 100);
|
||||
S32 new_water_height_cm = ll_round(new_water_height * 100);
|
||||
int count = (water_height_counts[new_water_height_cm] += 1);
|
||||
// Just use the lowest water height: this is mainly about the horizon water,
|
||||
// and whatever we do, we don't want it to be possible to look under the water
|
||||
|
||||
Reference in New Issue
Block a user