Skip to content

Commit

Permalink
Remove crash conditions for unrecognized tile specs. Allows for custo…
Browse files Browse the repository at this point in the history
…m tilespec support (fishing/mining)
  • Loading branch information
ethanmoffat committed Sep 7, 2022
1 parent e82157a commit 4be483c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EOLib/Domain/Character/WalkValidationActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private static bool IsTileSpecWalkable(TileSpec tileSpec)
case TileSpec.None:
return true;
default:
throw new ArgumentOutOfRangeException(nameof(tileSpec), tileSpec, null);
return false;
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion EndlessClient/Rendering/MouseCursorRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ private void UpdateCursorIndexForTileSpec(TileSpec tileSpec)
_cursorIndex = CursorIndex.Standard;
break;
default:
throw new ArgumentOutOfRangeException(nameof(tileSpec), tileSpec, null);
_cursorIndex = CursorIndex.HoverNormal;
break;
}
}

Expand Down

0 comments on commit 4be483c

Please sign in to comment.