(b1fa1d68c) Fix stairs not being properly assigned due to a failing raycast.

This commit is contained in:
Joonas Rikkonen
2019-05-18 17:22:23 +03:00
parent e7e794b070
commit 3cc0b65946
7 changed files with 8 additions and 8 deletions
@@ -790,7 +790,6 @@ namespace Barotrauma
for (int i = legalCrap.Length - 1; i >= 0; i--)
{
Vector2 textSize = GUI.SmallFont.MeasureString(legalCrap[i]);
textSize = new Vector2((int)textSize.X, (int)textSize.Y);
bool mouseOn = i == 0 &&
PlayerInput.MousePosition.X > textPos.X - textSize.X && PlayerInput.MousePosition.X < textPos.X &&
PlayerInput.MousePosition.Y > textPos.Y - textSize.Y && PlayerInput.MousePosition.Y < textPos.Y;