Incidencia #48244

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

Abrir Fecha: 2023-06-15 13:29 Última actualización: 2023-06-20 11:21

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Hito:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
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
  • Propietario Update from (Ninguno) to cazfi
  • Resolución Update from Ninguno to Accepted
2023-06-20 11:21 Updated by: cazfi
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Entrar