Project

General

Profile

Actions

Feature #1918

closed

access_areas_refresh(): Check only existing tiledefs

Added by Marko Lindqvist 24 days ago. Updated 16 days ago.

Status:
Closed
Priority:
Normal
Category:
General
Target version:
Start date:
01/18/2026
Due date:
% Done:

0%

Estimated time:

Description

Currently access_areas_refresh() iterates tiledef checks up to MAX_TILEDEFS. It should check only actually existing tiledefs. Just use tiledef_iterate() which will do the right thing in this respect too.
While at it, also change pf iteration loop to be the outer one and tiledef iteration loop the inner one for slight performance boost (tiledef iteration is quicker one to run over and over again).


Files


Related issues 1 (0 open1 closed)

Blocks Bug #1921: access_areas_refresh() calling tile_matches_tiledef() with nullptr tileClosedMarko Lindqvist01/22/2026

Actions
Actions #1

Updated by Marko Lindqvist 24 days ago

Actions #2

Updated by Marko Lindqvist 24 days ago

Do not break from the loops when one tiledef has been found - others might still need finding.

Actions #3

Updated by Marko Lindqvist 20 days ago

  • Blocks Bug #1921: access_areas_refresh() calling tile_matches_tiledef() with nullptr tile added
Actions #4

Updated by Marko Lindqvist 16 days ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF