Skip to content

Immigration stops despite empty plots (reload temporarily fixes) #645

Description

@dalerank

Summary

Game-breaking: Immigration can stop despite empty plots; reload temporarily fixes, then it stops again.

Reported

Mission 3: New villagers stopped coming even with empty plots. Reload fixed briefly, then stopped again (couldn't finish the map).

Code notes

  • Likely stuck states in create_immigrants / migration queue (city_population.cpp, `city_migration.cpp):
    • House BUILDING_SLOT_IMMIGRANT reserved by live stuck immigrant.
    • distance_from_entry() <= 0 skips houses.
    • Small immigration_queue_size may not flush when percentage drops to 0.
  • On load, migration.reset() clears runtime caps and figures re-init clears immigrant slots — explains temporary fix.
  • Sentiment immigration boost is behind gameplay_fix_immigration.

Expected

Immigrants continue spawning whenever empty housing with road access exists; no permanent soft-lock requiring reload.

Labels

bug, gameplay

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggameplay

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions