Skip to content

Host's preferred LAN map is not matched when its stored name uses a different separator #3103

Description

@bobtista

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour

Bug Description

The host's preferred map is looked up in the map cache with a raw lowercased name. When the stored name uses a different path separator than the cache key, the lookup misses, so the map is left unresolved on the game and the slot is never marked as having the map.

Reproduction Steps

  1. Have a preferred LAN map whose stored name uses a different separator than the map cache key.
  2. Host a LAN game.
  3. Observe the map is not matched: the host slot is not marked as having the map, and the map CRC and size are not set.

Additional Context

The lookup uses a lowercased TheMapCache->find rather than findMap, which normalizes separators before matching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions