Skip to content

Commit

Permalink
Fixes (not really) the navigator disconnection issue.
Browse files Browse the repository at this point in the history
Appends an integer value of 0 to show no results for the categories not coded.
  • Loading branch information
Sledmore authored Apr 17, 2020
1 parent 67b3030 commit 97243ff
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions HabboHotel/Navigator/NavigatorHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public static void Search(ServerPacket packet, SearchResultList result, string q
switch (result.CategoryType)
{
default:
case NavigatorCategoryType.MyFavourites:
case NavigatorCategoryType.MyHistory:
case NavigatorCategoryType.Featured:
packet.WriteInteger(0);
break;

Expand Down Expand Up @@ -142,11 +145,6 @@ public static void Search(ServerPacket packet, SearchResultList result, string q
break;
}

case NavigatorCategoryType.Featured:
{
break;
}

case NavigatorCategoryType.Popular:
{
List<Room> PopularRooms = PlusEnvironment.GetGame().GetRoomManager().GetPopularRooms(-1, limit);
Expand Down Expand Up @@ -316,12 +314,6 @@ public static void Search(ServerPacket packet, SearchResultList result, string q
break;
}

case NavigatorCategoryType.MyHistory:
{

break;
}

case NavigatorCategoryType.PromotionCategory:
{
List<Room> GetPromotedRooms = PlusEnvironment.GetGame().GetRoomManager().GetPromotedRooms(result.OrderId, limit);
Expand All @@ -339,4 +331,4 @@ public static void Search(ServerPacket packet, SearchResultList result, string q
}
}
}
}
}

0 comments on commit 97243ff

Please sign in to comment.