Ticket #44173

mapgen: Expand adjust_int_map() to take arbitrary target minimum

오픈 날짜: 2022-03-24 04:13 마지막 업데이트: 2022-03-26 21:33

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
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
  • 소유자 Update from (None) to alienvalkyrie
  • Resolution Update from None to Accepted
댓글 올리기

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
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login