Ticket #44173

mapgen: Expand adjust_int_map() to take arbitrary target minimum

Eröffnet am: 2022-03-24 04:13 Letztes Update: 2022-03-26 21:33

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
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-Verlauf (3/4 Historien)

2022-03-24 04:13 Aktualisiert von: alienvalkyrie
  • New Ticket "mapgen: Expand adjust_int_map() to take arbitrary target minimum" created
2022-03-25 02:07 Aktualisiert von: alienvalkyrie
  • Verantwortlicher Update from (Keine) to alienvalkyrie
  • Lösung Update from Keine to Accepted
Kommentar

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 Aktualisiert von: alienvalkyrie
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden