ModernUO/Projects/Server/Maps
Kamron Batman d3fdb180b3
fix: Fixes searching multis/clients. Adds missing map enumeration tests (#2278)
> [!IMPORTANT]
> **Dev Note:** This is an **important** patch as the bug could lead to major issues like:
> * Multis/Players disappearing from view or not being counted during game logic.
> * World processes (e.g., area checks, targeting) failing to detect entities correctly.
> * General stability and correctness concerns for core map functionality.
>
> **Important Breaking Change**: Multis now properly use the map link list. This means modifying a multi while iterating will cause the server to crash. The crash _is expected_. Please modify/fix code accordingly to create a list using `PooledRefQueue` or `PooledRefList` instead of moving/deleting multis while inside the foreach.

### Summary

* Fixes a bug where deleting/moving a multi (boat/house) in some circumstances can use undefined behavior due to unsafe changes to List<BaseMulti>
* Fixes a bug where Multis may not be considered while searching due to a bug causing the sector search to end early.
2025-11-27 11:59:47 -08:00
..
Map.ClientEnumerator.cs fix: Fixes searching multis/clients. Adds missing map enumeration tests (#2278) 2025-11-27 11:59:47 -08:00
Map.cs fix: Fixes searching multis/clients. Adds missing map enumeration tests (#2278) 2025-11-27 11:59:47 -08:00
Map.ItemEnumerator.cs fix: Fixes searching null map crash (#1975) 2024-10-15 17:52:27 -07:00
Map.MobileEnumerator.cs fix: Fixes searching null map crash (#1975) 2024-10-15 17:52:27 -07:00
Map.MultiEnumerator.cs fix: Fixes searching multis/clients. Adds missing map enumeration tests (#2278) 2025-11-27 11:59:47 -08:00
Map.StaticTileEnumerator.cs fix: Fixes iterating with multiple multis in a sector (#1706) 2024-03-10 11:35:57 -07:00
MapLoader.cs chore: Updates copyright (#1448) 2023-08-09 09:09:26 -07:00
MapSelection.cs feat: Customize expansion and set maps on first boot (#1425) 2023-07-31 20:46:49 -07:00