Fix typo in SetSlope()

This commit is contained in:
Gymnasiast 2018-09-16 13:36:19 +02:00
parent f7a03895f6
commit 0235137010
1 changed files with 2 additions and 2 deletions

View File

@ -213,5 +213,5 @@ uint8_t SurfaceElement::GetSlope() const
void SurfaceElement::SetSlope(uint8_t newSlope)
{
slope &= ~TILE_ELEMENT_SURFACE_SLOPE_MASK;
slope |= (newSlope | TILE_ELEMENT_SURFACE_SLOPE_MASK);
}
slope |= (newSlope & TILE_ELEMENT_SURFACE_SLOPE_MASK);
}