diff --git a/port/linux/include/halo_port_capacity.h b/port/linux/include/halo_port_capacity.h index 91d11a25..f602cb7a 100644 --- a/port/linux/include/halo_port_capacity.h +++ b/port/linux/include/halo_port_capacity.h @@ -58,6 +58,12 @@ objects, noncollideable objects, lights) */ #define HALO_PORT_MAXIMUM_AREA_OF_EFFECT_OBJECTS 256 /* (64) */ /* object references shared by all script object lists */ #define HALO_PORT_MAXIMUM_LISTED_OBJECTS_PER_MAP 1024 /* (128) */ +/* widgets (light volumes, antennas, flags, glows, lightning), each made with +its object and kept for its life: an assault rifle's flashlight beam, held or +dropped, and a plasma bolt's light volume; a full pool draws the object +without its widget */ +#define HALO_PORT_MAXIMUM_WIDGETS 2048 /* (64) */ +#define HALO_PORT_MAXIMUM_LIGHT_VOLUMES 2048 /* (256) */ /* ---------- effects, particles, lights and sounds */ diff --git a/source/objects/widgets/light_volumes.c b/source/objects/widgets/light_volumes.c index d6f36778..c0cca264 100644 --- a/source/objects/widgets/light_volumes.c +++ b/source/objects/widgets/light_volumes.c @@ -72,7 +72,7 @@ static struct light_volume_globals light_volume_globals = {0}; void light_volumes_initialize( void) { - light_volume_globals.light_volume_data = game_state_data_new("light volumes", 256, 8); + light_volume_globals.light_volume_data = game_state_data_new("light volumes", HALO_PORT_MAXIMUM_LIGHT_VOLUMES, 8); if (!light_volume_globals.light_volume_data) { display_assert( diff --git a/source/objects/widgets/widgets.c b/source/objects/widgets/widgets.c index 7c04f7e5..8be006c4 100644 --- a/source/objects/widgets/widgets.c +++ b/source/objects/widgets/widgets.c @@ -61,7 +61,7 @@ symbols in this file: enum { - MAXIMUM_WIDGETS_PER_MAP = 64 + MAXIMUM_WIDGETS_PER_MAP = HALO_PORT_MAXIMUM_WIDGETS }; /* ---------- macros */