Incidencia #44173

mapgen: Expand adjust_int_map() to take arbitrary target minimum

Abrir Fecha: 2022-03-24 04:13 Última actualización: 2022-03-26 21:33

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Hito:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
1

Details

adjust_int_map() and adjust_int_map_filtered() in mapgen_utils.[ch] produce values going from zero to their given int_map_max. Expand these to also take an int_map_min, for use cases like the FIXME introduced in #44167.

Ticket History (3/4 Histories)

2022-03-24 04:13 Updated by: alienvalkyrie
  • New Ticket "mapgen: Expand adjust_int_map() to take arbitrary target minimum" created
2022-03-25 02:07 Updated by: alienvalkyrie
  • Propietario Update from (Ninguno) to alienvalkyrie
  • Resolución Update from Ninguno to Accepted
Comentario

Since there weren't too many places that use it, I decided to change the existing function and all call sites, rather than try and come up with a name for a new function – this way, those calls where the desired minimum is zero explicitly state that.

2022-03-26 21:33 Updated by: alienvalkyrie
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Entrar