it would be best if there was just one or two spots where extensions can be added or changed.
Not that we're planning on actually adding or changing them anymore, but refactoring would reduce the amount of code, and may make a nice learning opportunity for someone. ;)
Since there are 3 extensions, an array would probably be suitable, so loops could be used in at least one or 2 of the areas shown in the commit link above.
These are all the places where the extensions of maps (zgm, mgm, and gbm) are specified:
https://github.com/ZetaGlest/zetaglest-source/commit/62e3819d867ed0513cb8f436cab61b6aed7673ff
it would be best if there was just one or two spots where extensions can be added or changed.
Not that we're planning on actually adding or changing them anymore, but refactoring would reduce the amount of code, and may make a nice learning opportunity for someone. ;)