Farama-Foundation / MAgent2

An engine for high performance multi-agent environments with very large numbers of agents, along with a set of reference environments
https://magent2.farama.org
MIT License
201 stars 34 forks source link

Fix(render): fix banner problem with number of handles #35

Open Filippo-Venturini opened 2 months ago

Filippo-Venturini commented 2 months ago

This code fix an issue related to the render of the banners.

While using different groups of agents (so different handles) the system was crashing, only the condition with 2 handles was working correctly.

With this change it's allowed to use also a group of 1 or 4 handles.