Ticket #48244

Move NATURAL_WIDTH & friends from map.h to world_object.h

오픈 날짜: 2023-06-15 13:29 마지막 업데이트: 2023-06-20 11:21

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

Move MAP_INDEX_SIZE, NATIVE_WIDTH, NATIVE_HEIGHT, NATURAL_WIDTH, and NATURAL_HEIGHT from map.h to world_object.h.

All these refer to wld.map. They do work as they are, as we currently don't even try to support simultaneous map objects with different size or topology. I just want to start concentrating such direct references to the main map to one place, so that basically grepping for "wld.map" would reveal if some place hardcodes use of main map when it should not.

Also prefixed those macros with "MAP_"

Ticket History (3/4 Histories)

2023-06-15 13:29 Updated by: cazfi
  • New Ticket "Move NATURAL_WIDTH & friends from map.h to world_object.h" created
2023-06-15 13:44 Updated by: cazfi
  • 소유자 Update from (None) to cazfi
  • Resolution Update from None to Accepted
2023-06-20 11:21 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login