Wargus / wargus

Importer and scripts for Warcraft II: Tides of Darkness, the expansion Beyond the Dark Portal, and Aleonas Tales
GNU General Public License v2.0
356 stars 55 forks source link

Use local table for naming forces. #444

Closed SimoneStarace closed 9 months ago

SimoneStarace commented 9 months ago

Instead of using 7*2 if statement for naming the forces in local maps it is used a table of tables containing the name of the forces to avoid the execution of multiple if statements.

SimoneStarace commented 9 months ago

@Jarod42 I have made a new commit using the map as you suggested and I also have resolved the use of _