[freeciv/freeciv] c0cb0a: access_areas_refresh(): Iterate tiledefs with tile...

freeciv-commits <[email protected]>
Newsgroups gmane.games.freeciv.devel
Message-ID <freeciv/freeciv/push/refs/heads/main/[email protected]>
  Branch: refs/heads/main
  Home:   https://github.com/freeciv/freeciv
  Commit: c0cb0a852e8dae2a14adb924e550a5a3e5e6f379
      https://github.com/freeciv/freeciv/commit/c0cb0a852e8dae2a14adb924e550a5a3e5e6f379
  Author: Marko Lindqvist <[email protected]>
  Date:   2026-01-26 (Mon, 26 Jan 2026)

  Changed paths:
    M common/accessarea.c

  Log Message:
  -----------
  access_areas_refresh(): Iterate tiledefs with tiledef_iterate()

- Replace tiledef index based loop with tiledef_iterate()
  This will notably stop iteration going over non-existing tiledefs
- Rearrange loops so that path finding one is the outer one,
  and tiledef_iterate() inner one

See RM #1918

Signed-off-by: Marko Lindqvist <[email protected]>



To unsubscribe from these emails, change your notification settings at https://github.com/freeciv/freeciv/settings/notifications
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.